Is createBrowserRouter expected to be deprecated in the long term in React Router? #13080
Replies: 2 comments
-
That's just a goof on remix team part. I don't think they've spent all the effort designing data routers just to throw it all out in a major version or two. The current docs look like a placeholder and I sure hope they plan on bringing the library mode docs up to the level of the previous version docs, since they are super confusing to a person first arriving to 7.0 as a dependency for client-side app. |
Beta Was this translation helpful? Give feedback.
-
Docs needs to be improved to also show createBrowserRouter, but it's not expected to be deprecated, specially as framework mode uses it. The docs for custom framework uses createBrowserRouter. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I noticed that in React Router v6, the
createBrowserRouter
function was commonly used in tutorials and examples for setting up routing. However, in React Router v7, this method seems to have taken a backseat, with the focus now on using RouterProvider.While I understand that
createBrowserRouter
is still supported, I was wondering if there are any plans to deprecate it in the long term? Or is it expected to remain for future versions of React Router?Thanks for any insights or clarifications you can provide!
Beta Was this translation helpful? Give feedback.
All reactions