Wrap up and going further
Routing and SPA’s are a powerful feature of client-side architecture, and although we covered some basics, it is highly recommended to look for further resources and topics, like dynamic routes, params, the match, history and location objects etc.
If you want to learn more, you can start the journey here:
Build a single page app for beginners.
And take a bit of a deeper step here on how to navigate programmatically through routing.