A component that wraps a scoped router context, so that calls to useRouter(), useRouterState(), and usage of <StateLink /> will be prefixed with the scope segment.
useRouter()
useRouterState()
<StateLink />
Props to pass RouteScope component. See RouteScopeProps
RouteScope
function MyComponent() { return ( <RouteScope scope="foo"> <StateLink state={{bar: 'baz'}}>Link</StateLink> </RouteScope> )} Copy
function MyComponent() { return ( <RouteScope scope="foo"> <StateLink state={{bar: 'baz'}}>Link</StateLink> </RouteScope> )}
A component that wraps a scoped router context, so that calls to
useRouter()
,useRouterState()
, and usage of<StateLink />
will be prefixed with the scope segment.