DEV Community


Discussion on: Multiple Layout In React Router

dinesh0191 profile image

hey what if I like to create a child route inside the dashboard

selvaece25 profile image
Selva kumar Author

The Root component will be responsible for rendering all Layouts. Each Layout in turn will then be responsible for all the components using it.

Child route or nested route will have a new layout and pass it to Dashboard layout as props in addition will work as per expectation.