What they don’t explain when migrating to react-router v6

How to migrate your code when you use the magical renderRoutes

Jose Antonio Gonzalez Rodriguez
Level Up Coding
Published in
2 min readFeb 25, 2022

--

Photo by Tyler Rutherford on Unsplash

I like react-router. It is easy to use, has a lot of functionality, and since v5 they started using React hooks.

I also like to define all my routes from the beginning so I was using their package react-router-config and the magical…

--

--

Mexican living in Porto Mexican living in Porto helping feed the world sustainably.