History API for client-side navigation [2/21]

preview_player
Показать описание
Part 1. Client-side Routing with routes definition
============

Part 2. Generating routes definition from folder structure
============

🔗 Want to learn more from me? Check out these links:

Thanks for watching 🥰 -- with love, Li Hau
Рекомендации по теме
Комментарии
Автор

why not const targetLocation = a.pathname; ?

moutafatin
Автор

Thank you for the video ! I finally understood how single page app manage to change links without refreshing, it was magical for me.
Should you check if the href is not the same domain too? In this case don’t apply routing?

luckydayweed