With the emergence in Single page applications, devs have moved away from server side routing in favour of client side routing. It is quite easy to implement in popular frameworks like Angular and UI libraries like React, thanks to well established modules like ui-router, React-router etc.

In this article we are going to explore what is client side routing and how can we incorporate it in a vanilla JS web app by building our own routing module.

Disclaimer: Don’t use it in prod. …

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store