Difficulty: 6/10react-router, nested routes, declarative routingThe path of the parent is automatically included in the child, so this config creates both "/dashboard" and "/dashboard/settings" URLs.javascriptCopyChild routes are rendered through the <Outlet/> in the parent route.CopyScenario Questions0-2 years experience1How would you set up a parent route '/dashboard' with child routes '/dashboard/overview' and '/dashboard/settings' using React Router's declarative API?2If you forget to include an <Outlet/> in the parent component, what will the user see when navigating to a child route?2-5 years experience1We need to add a nested route that loads data based on a URL param, but the data fetch is failing after a recent refactor. Walk me through how you'd debug the routing and data loading flow.Follow-up QuestionsCan you walk me through what happens when <Outlet> is omitted in a parent route?How would you protect a nested route that requires authentication while keeping the layout reusable?What considerations do you have for preserving scroll position when navigating between nested routes?Suggest Improvement