Installation
@use-funnel is compatible with various routers. including:
- react-router
- For the react-router-dom, use
@use-funnel/react-router-dompackage.
- For the react-router-dom, use
- next.js page router
- next.js app router: use the
@use-funnel/browserpackage.
A dedicated adapter is not yet available, so refer to the official guide for implementation details. - @react-navigation/native
- browser history
Supported React Version
| React | ^16.8 |
|---|
Installation
Select the router you want to use and install the corresponding package with the following command:
npm install @use-funnel/react-router --save
npm install @use-funnel/react-router-dom --save
npm install @use-funnel/next --save
npm install @use-funnel/react-navigation-native --save
npm install @use-funnel/browser --saveIf the router you need isn’t listed or if you prefer to manage history directly, refer to Creating a Custom Router.