RouteProvider example using React Routers new DataRouters api? #6352
              
                Unanswered
              
          
                  
                    
                      binaryartifex
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| you can do sth like this function RootRoute () {
   const navigate = useNavigate()
  return (
    <RACRouterProvider navigate={navigate} useHref={useHref}>
      <Outlet />
    </RACRouterProvider>
  )
}
const router = createBrowserRouter([
  {
    id: 'root',
    Component: RootRoute
    children: [...]
  }
])
export default function App () {
  return <RouterProvider router={router} />
} | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Is it at all possible to leverage RouteProvider with react routers new v6.4 data routers? The react router example in the docs wraps the RouteProvider within a BrowserRouter. which does not support their new data apis.
Beta Was this translation helpful? Give feedback.
All reactions