hey what if I like to create a child route inside the dashboard
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.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
hey what if I like to create a child route inside the dashboard
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.