Skip to content

Supporting of createBrowserRouter in react router #6440

Discussion options

You must be logged in to vote

Hello @JuicyBenjamin, thank you for bringing up this topic. 🚀

Refine is designed to be router-agnostic, meaning it can theoretically work with any router library. If an issue comes up, we can quickly add a new routerProvider.

We’re big fans of React Router and are interested in updating our examples to use their latest recommended API. However, we're not looking to adopt it just because it’s "new". createBrowserRouter has some powerful features, and we’re currently exploring how to best integrate these with Refine. Once we find an ideal approach, we’ll update our examples accordingly.

Below is an example using createRouterBrowser, with the base-antd example as a starting point:

import { G…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by BatuhanW
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants