BrowserRouter in React
BrowserRouter uses the real path: /about. HashRouter uses /#/about. Real paths look better and help SEO a bit, but the server must return index.html for unknown paths — otherwise refresh on /about is a 404. That’s the deploy trap.
Vite/Netlify/nginx SPA fallback is the fix. Mention it. Don’t only recite ‘BrowserRouter is better’.
BrowserRouter in React — output — real URL vs hash vs deploy trap. Refresh on /about must not 404.
URL /about
│ BrowserRouter
▼
<Route> → About
│ Link
▼
no full reloadReal URL + refresh 404 trap.