API/<BrowserAdapter>
<BrowserAdapter>
componentsrc/components/browser-adapter.tsx1 parameter
Make browser history the router adapter of every list below it — for apps without a router.
Lists read the URL and navigate with history.pushState / replaceState; every list on the
page stays in sync, and the back and forward buttons work. Inside React Router, TanStack Router
or Next.js, use that router’s adapter instead: their router would not see these navigations.
Import
Section titled “Import”import { BrowserAdapter } from '@qubeejs/react';Signature
Section titled “Signature”function BrowserAdapter(props: AdapterProviderProps): ReactElementParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
props |
AdapterProviderProps |
The subtree |
Returns
Section titled “Returns”The subtree, with the adapter in context
Example
Section titled “Example”<BrowserAdapter> <Articles /></BrowserAdapter>