Skip to content
API/<BrowserAdapter>

<BrowserAdapter>

component
src/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 { BrowserAdapter } from '@qubeejs/react';
function BrowserAdapter(props: AdapterProviderProps): ReactElement
Parameter Type Description
props AdapterProviderProps The subtree

The subtree, with the adapter in context

<BrowserAdapter>
<Articles />
</BrowserAdapter>

AdapterProviderProps