Let’s code a client side router for your frameworkless SPA

Vijit Ail
Vijit Ail
May 19, 2019 · 7 min read

Yes, you read the title right, Client side router for a frameworkless SPA, that’s exactly what we are going to build in this story.

Before we dive into the code, let’s first understand what is client side routing.

A client side router runs on the user’s browser. The browser does not make a request to the server for the page, rather it…