Skip to contents

Usage

createMemoryRouter(...)

Arguments

...

Route elements, typically wrapped in createRoutesFromElements.

Value

A createMemoryRouter component.

Details

Creates a memory router using the data router API. Routing state is kept in memory and the browser URL is never read or modified, making it suitable for static HTML pages (file://), Quarto documents, and embedded widgets where the real URL is irrelevant. Use with createRoutesFromElements and Route.