Put in order · JavaScript and React course · Module 6: React Router
Outlet component in React Router
Arrange the process of rendering a nested route in React Router:
Items to put in order
- The Settings component renders in place of <Outlet />
- The layout component (Dashboard) is rendered
- React Router matches the child route (/settings)
- The user navigates to a URL (e.g., /dashboard/settings)
- React Router matches the parent route (/dashboard)
You can check the correct answer by solving this task in the CodeWorlds game.