Native JavaScript Routing?

3 · CSS-Tricks · Aug. 23, 2021, 3:25 p.m.
We can update the URL in JavaScript. We’ve got these APIs: // Adds to browser history history.pushState({}, "About Page", "/about"); // Doesn't history.replaceState({}, "About Page", "/about"); JavaScript is also capable of replacing any content in the DOM. // Hardcore document.body.innerHTML … The post Native JavaScript Routing? appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter....