React Router API Reference
    Preparing search index...

    Function MemoryRouter

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

      Parameters

      • props: MemoryRouterProps

        Props

        • Optionalbasename?: string

          Application basename

        • Optionalchildren?: ReactNode

          Nested Route elements describing the route tree

        • OptionalinitialEntries?: InitialEntry[]

          Initial entries in the in-memory history stack

        • OptionalinitialIndex?: number

          Index of initialEntries the application should initialize to

        • Optionalunstable_useTransitions?: boolean

          Control whether router state updates are internally wrapped in React.startTransition.

          • When left undefined, all router state updates are wrapped in React.startTransition
          • When set to true, Link and Form navigations will be wrapped in React.startTransition and all router state updates are wrapped in React.startTransition
          • When set to false, the router will not leverage React.startTransition on any navigations or state changes.

          For more information, please see the docs.

      Returns ReactElement

      A declarative in-memory <Router> for client-side routing.

      declarative