API/@qubeejs/react/react-router
@qubeejs/react/react-router
@qubeejs/react/react-router — the router adapter for React Router 7 and later.
Its own entry point, so that only apps that import it need react-router installed.
| Import from | @qubeejs/react/react-router |
| Needs | react-router >=7.0.0, an optional peer dependency: install it to use this entry. |
| Runs in | Client components: the entry is marked 'use client'. A Server Component can render what it exports, not call it. |
Exports
Section titled “Exports”| Export | Kind | What it is |
|---|---|---|
| <ReactRouterAdapter> | component | Make React Router the router adapter of every list below it. |
| useReactRouterAdapter() | hook | React Router as a RouterAdapter: |
| ReactRouterAdapterOptions | type | Options of useReactRouterAdapter. |
| ReactRouterAdapterProps | type | Props of ReactRouterAdapter. |