JSFiddle - React, Tailwind, and code Playground

by Kevin Faulhaber

JavaScript

window.onpageshow = function(event) {
    if (event.persisted) {
        alert("From back / forward cache.");
    }
};