JSFiddle - React, Tailwind, and code Playground

by edelman

HTML

<div id="result"></div>

JavaScript

!function(){"use strict";function n(e,t){if(t!==null&&t!==undefined){if(typeof t==="string")e.s=t;else e.s=t.toString()}else{e.s=t}e.orig=t;if(t!==null&&t!==undefined){if(e.__defineGetter__){e.__defineGetter__("length",function(){return e.s.length})}else{e.length=t.length}}else{e.length=-1}}function r(e){n(this,e)}function u(){for(var e in s){(function(e){var t=s[e];if(!i.hasOwnProperty(e)){o.push(e);i[e]=function(){String.prototype.s=this;return t.apply(this,arguments)}}})(e)}}function a(){for(var e=0;e<o.length;++e)delete String.prototype[o[e]];o.length=0}function c(){var e=h();var t={};for(var n=0;n<e.length;++n){var r=e[n];var s=i[r];try{var o=typeof s.apply("teststring",[]);t[r]=o}catch(u){}}return t}function h(){var e=[];if(Object.getOwnPropertyNames){e=Object.getOwnPropertyNames(i);e.splice(e.indexOf("valueOf"),1);e.splice(e.indexOf("toString"),1);return e}else{var t={};var n=[];for(var r in String.prototype)t[r]=r;for(var r in Object.prototype)delete t[r];for(var r in t){e.push(r)}return e}}function p(e){return new r(e)}function d(e,t){var n=[],r;for(r=0;r<e.length;r++){n.push(e[r]);if(t)t.call(e,e[r],r)}return n}var e="1.8.0";var t={};var i=String.prototype;var s=r.prototype={between:function(e,t){var n=this.s;var r=n.indexOf(e);var i=n.indexOf(t,r+e.length);if(i==-1&&t!=null)return new this.constructor("");else if(i==-1&&t==null)return new this.constructor(n.substring(r+e.length));else return new this.constructor(n.slice(r+e.length,i))},camelize:function(){var e=this.trim().s.replace(/(\-|_|\s)+(.)?/g,function(e,t,n){return n?n.toUpperCase():""});return new this.constructor(e)},capitalize:function(){return new this.constructor(this.s.substr(0,1).toUpperCase()+this.s.substring(1).toLowerCase())},charAt:function(e){return this.s.charAt(e)},chompLeft:function(e){var t=this.s;if(t.indexOf(e)===0){t=t.slice(e.length);return new this.constructor(t)}else{return this}},chompRight:function(e){if(this.endsWith(e)){var...