JSFiddle - React, Tailwind, and code Playground
JavaScript
if (this == window) document.write("'this' is 'window'");
if (!$(this).is("a")) document.write("'this'(window) is not a link");
if (this == window) document.write("'this' is 'window'");
if (!$(this).is("a")) document.write("'this'(window) is not a link");