JSFiddle - React, Tailwind, and code Playground
JavaScript
window.test = document; //Cache document
document.write('<button onclick="alert(window.test===document)">CLick</button>');
window.test = document; //Cache document
document.write('<button onclick="alert(window.test===document)">CLick</button>');