DEV Community

Discussion on: React Router: A simple tutorial on nested routes.

Collapse
 
tundeiness profile image
Tunde Oretade

In the Home component, you passed routes as props and it is then mapped to produce the subroutes. When inspected using your repository, routes is 'undefined'. Maybe you can elaborate on how you got to pass routes into the Home component for use.