React Router Nested Routes Quiz
Test your knowledge of nested routes in React Router, including Outlet, layout routes, index routes, relative paths, and child route rendering.
20 questions · free · answers explained
All questions in this quiz
- What are nested routes in React Router?
- Which component renders the matching child route inside a parent route?
- What happens if a parent route does not render Outlet?
- What is a layout route commonly used for?
- What does an index route represent in a nested route tree?
- Which route is a child path relative to its parent?
- What URL can match a child route with path settings under a parent path dashboard?
- Where should navigation shared by dashboard child pages usually live?
- Which hook reads context passed through Outlet context?
- What is the purpose of Outlet context?
- How do relative links help nested routes?
- What does a path of .. commonly mean in nested navigation?
- Why are nested routes useful for dashboards?
- Which component replaced the common React Router v5 Switch route selection pattern?
- What should child route paths usually omit when they are meant to be nested relative paths?
- Can a parent route render its own content and also render child routes?
- What happens when no child route matches and there is no index route?
- How can nested routes reduce duplication?
- Which route structure best represents a settings page inside a dashboard?
- What is the biggest practical difference between nested routes and simply rendering tabs with local state?
Prefer to read first? React interview questions with written answers.