JSFiddle - React, Tailwind, and code Playground

by Emanuel Vecchio

CSS

</style> 
<meta http-equiv="Content-Security-Policy" content="script-src 'unsafe-inline'"> 
<style>

JavaScript

"use strict";

function isBrowser() {
  try {
    return (new Function("try { return window === this } catch (e) { return false }"))();
  } catch (e) {    
    return true;
  } 
}

if(isBrowser()) console.log("running under browser");