Creating an SPA Router in Vanilla JS

preview_player
Показать описание
In this video, I'll show a simple solution to routing for a vanilla JavaScript single-page application.

Рекомендации по теме
Комментарии
Автор

I've seen a lot of people experiencing errors when attempting to input a URL to go to a page. If you are experiencing errors, make sure your server is only serving your index page for any request. This will allow your router to load and operate properly. Apologies for not including that part in the video!

mitch_dev
Автор

This 3 minute clip just saved me from learning Angular, React, Node.js and TypeScript. I know there are quite a bit differences, but for my purpose this is exactly what i needed, thanks! :D

AliveDeejay
Автор

Such a straightforward implementation of vanilla JS routing. THANKS! i had already looked at several tutorials attempting the same. They were across the board clunky and, at times, arcane (at least to me). You saved me many hours of frustration and aggravation.

GingLouie
Автор

Very good video and explanation. It was what I was looking for, a simple router in js vanilla. Thanks for sharing. I will be aware of the channel.

LanAv
Автор

OMG !!! This is the madness i have been looking, Long live Mr. DEV.

kombokenedy
Автор

Great video, Mitch Dev. Thank you for such a nice and simple video! It's much better to get everything you need for less than 4 minutes than watching my professor's 1.5h lecture which would give me no idea what is going on.

life
Автор

Wow, amazing!!!
OMG so clear, so to the point, so short, again wow
Excellent👏

JahanKlik
Автор

Making the clone of Spotify using only vanilla js, this is my favourite video, thanks bro, love from India

Mobilemaniaplays
Автор

Man you are awesome... I was looking for this for very long thank you

animeworldnetwork
Автор

Great video, I've been looking for a simple example like this, thanks for sharing.

JorgeSanchez-nvks
Автор

surprisingly, i found a very clear usecase of vanilla js for routing from non indian youtuber

severn-master
Автор

This is a cool project, just a small problem. If I go to "/about" and refresh the page, it returns "Cannot GET /about"

John
Автор

thanks for the video, but there's an error when i reload after clicking one of the route nav, any ideas?

nalendro_agung
Автор

Thank you for this great contribution, simple and perfect explanation.

mauriciolaratro
Автор

This vidéo is great, direct and clear .
Thank's it helped a lot

neilgibs
Автор

thanks for the upload, clean and straightforward explanation! :)

danielfarkas
Автор

Exactly what I was looking for, works great, you the man!

scyrusTangoSalsa
Автор

Dope example. A bit too fast for those who are watching SPAs from scratch for the first time, but thanks a lot for the concise version.

Fanaro
Автор

Great video! Real simple and to the point

josiah_maddux
Автор

is just that u need an extended knowledge of js to do this.... thank you very much

abahiduh