Question · JavaScript and React course · Module 6: React Router
Outlet component in nested routes
Where in the parent component do you place <Outlet /> to render nested routes?
Answer options
- Inside the <Routes> component, next to route definitions
- Always at the very beginning of the component, before other elements
- In the place where child route components should be displayed
- In the router configuration file, outside of components
You can check the correct answer by solving this task in the CodeWorlds game.