React - Routing
For Single Page Application the routing handling is a crucial part. It helps the app to adjust to the current url and extract data from it. Your application will probably contain multiple pages that users can navigate through, so the routing must be handled properly.
Disclaimer - the routing is depending on the meta framework. It will be different for NextJS app and different for Remix and dozens of other frameworks that support SSR. This skills are focusing on Single Page Application usecases
SPA routers
I know and use one of the multiple libraries like react-routerLibrary to handle SPA routing
Route handling
I know how I can display a desired screen based on the url provided into the browser. I know how to use wildcard paths to match multiple (sub)paths
I know the idea of outlets that enables to mount subpaths in the specific slot of the parent's screen
I remember to provide not found pages for paths that do not match
Retriving slugs
I can retrive ids and slugs from the URL and routes to fetch and render proper data for each specific path that user provides
Manual navigation
I know that each library has its own custom navigation that simulates the links. I know that I should use libraries navigation tools not to trigger unnecessary browser refreshing
I know and use one of the multiple libraries like react-routerLibrary to handle SPA routing
I know how I can display a desired screen based on the url provided into the browser. I know how to use wildcard paths to match multiple (sub)paths
I know the idea of outlets that enables to mount subpaths in the specific slot of the parent's screen
I remember to provide not found pages for paths that do not match
I can retrive ids and slugs from the URL and routes to fetch and render proper data for each specific path that user provides
I know that each library has its own custom navigation that simulates the links. I know that I should use libraries navigation tools not to trigger unnecessary browser refreshing