Replies: 1 comment 1 reply
-
I'm also finding it difficult to do this const router = createBrowserRouter([
{
element: <Root />,
children: [
{
path: "/",
element: <BridgeRoute />,
},
{
path: "/transactions",
element: <Transactions />,
},
],
},
]);
function App() {
const navigate = useNavigate(); // Uncaught Error: useNavigate() may be used only in the context of a <Router> component.
return (
<React.StrictMode>
<WagmiProvider config={config}>
<QueryClientProvider client={queryClient}>
<NextUIProvider navigate={navigate}>
<RouterProvider router={router} />
</NextUIProvider>
</QueryClientProvider>
</WagmiProvider>
</React.StrictMode>
);
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
I've noticed that the actual React Router support page describes how to integrate nextui using <BrowserRouter> and <Routes> which as I have understood (I'm a newbie) is deprecated in favor of React's "RouterProvider".
Is it possible ot integrate nextui navigation using React's RouterProvider ?
Eg:
Thanks
F.
Beta Was this translation helpful? Give feedback.
All reactions