JSFiddle - React, Tailwind, and code Playground

by Academia

HTML

<a href="#">My link</a>

JavaScript

window.onpopstate = function(event) {
  alert("location: " + document.location + ", state: " + JSON.stringify(event.state));
};