JSFiddle - React, Tailwind, and code Playground
JavaScript
var c = function() {};
window.foo = new c();
setTimeout(function() {
console.log('reset');
window.foo = 42;
}, 10000);
var c = function() {};
window.foo = new c();
setTimeout(function() {
console.log('reset');
window.foo = 42;
}, 10000);