Skip to content
- it is core of your app. if you build it you can not change it often
- routes directly affect the SEO
- it is crucial for user (as user might have bookmarked your route => better way it redirection but it is not a good way it is just fallback), it might have indexed
- Query
- keep your route clean. also take care of query params. don’t change it often. if you change it you have to manage it in robots.txt as well
- in your interview give 5 min to routing as well.
- How you handle protected route in your system
- how will you handle nested route.
- impact of routes in SEO
- don’t combine auth and route at same place it will not follow single responsibility principle. create a wrapper for authentication or protected route instead.
- use Link inside BrowserRouter