MemoryRouter
On this page

MemoryRouter

Summary

Reference Documentation ↗

A declarative <Router> that stores all entries in memory.

Signature

function MemoryRouter({
  basename,
  children,
  initialEntries,
  initialIndex,
}: MemoryRouterProps): React.ReactElement

Props

basename

Application basename

children

Nested Route elements describing the route tree

initialEntries

Initial entries in the in-memory history stack

initialIndex

Index of initialEntries the application should initialize to

Docs and examples CC 4.0
Edit