JSFiddle - React, Tailwind, and code Playground

by Emily Humphrey

HTML

<script src="https://cdn.jsdelivr.net/npm/[email protected]/cdn.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/cdn.min.js"></script>
<script src="
https://cdn.jsdelivr.net/npm/[email protected]/cdn.min.js
"></script>

JavaScript

console.log((()=>{function SX(K,G){var X=typeof Symbol!=="undefined"&&K[Symbol.iterator]||K["@@iterator"];if(!X){if(Array.isArray(K)||(X=DG(K))||G&&K&&typeof K.length==="number"){if(X)K=X;var B=0,U=function q(){};return{s:U,n:function q(){if(B>=K.length)return{done:!0};return{done:!1,value:K[B++]}},e:function q(Q){throw Q},f:U}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Z=!0,j=!1,J;return{s:function q(){X=X.call(K)},n:function q(){var Q=X.next();return Z=Q.done,Q},e:function q(Q){j=!0,J=Q},f:function q(){try{if(!Z&&X.return!=null)X.return()}finally{if(j)throw J}}}}function W(K,G,X){return G=OG(G),JK(K,hX()?Reflect.construct(G,X||[],OG(K).constructor):G.apply(K,X))}function JK(K,G){if(G&&(n(G)==="object"||typeof G==="function"))return G;else if(G!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R(K)}function R(K){if(K===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}function hX(){try{var K=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(G){}return(hX=function G(){return!!K})()}function OG(K){return OG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function G(X){return X.__proto__||Object.getPrototypeOf(X)},OG(K)}function z(K,G){if(typeof G!=="function"&&G!==null)throw new TypeError("Super expression must either be null or a function");if(K.prototype=Object.create(G&&G.prototype,{constructor:{value:K,writable:!0,configurable:!0}}),Object.defineProperty(K,"prototype",{writable:!1}),G)BX(K,G)}function BX(K,G){return BX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function X(B,U){return B.__proto__=U,B},BX(K,G)}function Y(K,G){if(!(K instanceof G))throw new TypeError("Cannot call a class as a function")}function yX(K,G){for(var X=0;X<G.length;X++){var...