Introduction In this article, I will explain how I had built a custom SPA router using Vanilla JavaScript. I had to build a UI project without any using framework and had to figure out how to handle routing and discovered that you can build your own ...
blog.skay.dev8 min read
Code newbie here. Loved this. Very concise and insightful. Something curious came up in the code when I was learning with it. I commented out the variables you declared globally for the pages and it didn't break the code. Is there any implication for not declaring the variables at all globally or am I missing something?
Love this, thanks for sharing!
Shahriyar Kabir Sami
Nothing
It is awesome . But when I reload the "/about" or "/contact" it shows "Cannot get /about" . How can I solve that ?