DEV Community

Need help finding a very basic vanilla Javascript SPA router tutorial or source code

jules manson on January 08, 2019

I am coding a very simple single-page-app (actually just a website with one page) that is responsive to all screen sizes. It won't need to be a Swi...
Collapse
 
mazentouati profile image
Mazen Touati • Edited

I think History API is what you are looking for, good luck.

Collapse
 
julesmanson profile image
jules manson

Yeah but that is not a router. A router makes use of history in the BOM but the BOM isn't a controller which is what a router essentially needs to be. Thanks anyway.

Collapse
 
vbilopav profile image
vbilopav
Collapse
 
kodnificent profile image
Victor Mbamara 🇳🇬 • Edited

dev.to/kodnificent/how-to-build-a-...

Better late than never 😉