JSFiddle - React, Tailwind, and code Playground

by trolleymusic

HTML

<body>
    <button id="next">Next</button>
    <a href="https://google.com">Google</a>
</body>

CSS

button, a {
    display: block;
}

JavaScript

var next = document.getElementById('next')

next.addEventListener('click', function () {
    window.history.pushState({}, 'something', '#')
})