DEV Community

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

Collapse
 
omrisama profile image
Omri Gabay

Does react-router actually let you out a Route element inside of another one?

Collapse
 
hey_yogini profile image
Yogini Bende

Yes, it does. If you check props of any component, you can see routes as one of the key inside props object.

Also, you can check details of this approach in react-router's official documentation here