DEV Community

Discussion on: Multiple Layout In React Router

Collapse
 
dinesh0191 profile image
dinesh0191

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

Collapse
 
selvaece25 profile image
Selva kumar

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.