Difficulty: 5/10React Router, basename, route prefixRoute Prefix is a Route with path but without an element prop, it adds a path prefix to its child routes, without introducing a parent layout.javascriptCopyScenario Questions0-2 years experience1We have a small React app using React Router. How would you set up a route prefix so that all routes are under '/app' without repeating the prefix in each Route component?2If you add a new page at '/app/settings' but forget to include the prefix in the Link component, what will the user see when they click it?2-5 years experience1You’re adding a feature module that should be accessible under '/admin'. The team is using BrowserRouter with a basename. Explain how you would configure the router and why the existing routes might break after you add the new module.Follow-up QuestionsHow does the basename affect the value returned by useLocation?What issues can arise if a nested route changes its prefix at runtime?Are there any gotchas when lazy‑loading modules under a common prefix?Suggest Improvement