How to migrate your code when you use the magical renderRoutes — 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 function renderRoutes to render nested routes. Then v6…