JSFiddle - React, Tailwind, and code Playground

JavaScript

var ObservableSlim=function(){observables=[];var r=[];targetsProxy=[];var e=null,t=function(o,a,s,n){var l=s||null,i=n||"",u=[],b=function(r,e){return r instanceof Array?""!==i?i:e:""!==i?i+"."+e:e},f=function(r){if(!0!==l.paused)if(!0===a)setTimeout(function(){if(r===u.length){for(var e=0;e<l.observers.length;e++)l.observers[e](u);u=[]}},10);else{for(var e=0;e<l.observers.length;e++)l.observers[e](u);u=[]}},v=new Proxy(o,{get:function(e,o){if("__isProxy"===o)return!0;if("__getParent"===o)return function(r){if(void 0===r)r=1;var t,o=b(e,"__getParent").split(".");return o.splice(-(r+1),r+1),t=l.proxy,o.join(".").split(".").reduce(function(r,e){return r?r[e]:void 0},t||self)};if(null!==e[o]&&"object"==typeof e[o]){var s=r.indexOf(e[o]);if(s>-1)for(var n=targetsProxy[s].length;n--;)if(targetsProxy[s][n].observable===l)return targetsProxy[s][n].proxy;var u=""!==i?i+"."+o:o;return t(e[o],a,l,u)}return e[o]},deleteProperty:function(t,o){var a=!0;e===v&&(a=!1,e=null);var s=Object.assign({},t),n=b(t,o);if(u.push({type:"delete",target:t,property:o,newValue:null,previousValue:s[o],currentPath:n,proxy:v}),!0===a){var l=r.indexOf(t);if(l>-1)for(var i=targetsProxy[l].length;i--;)targetsProxy[l][i].proxy!==v&&(e=targetsProxy[l][i].proxy,delete targetsProxy[l][i].proxy[o]);delete t[o]}return f(u.length),!0},set:function(t,o,a,s){var n=!0;if(e===v&&(n=!1,e=null),t[o]!==a||!1===n){var l=b(t,o),i="update";if(void 0===s[o]&&(i="add"),u.push({type:i,target:t,property:o,newValue:a,previousValue:s[o],currentPath:l,proxy:v}),!0===n){var y=r.indexOf(t);if(y>-1)for(var p=targetsProxy[y].length;p--;)targetsProxy[y][p].proxy!==v&&(e=targetsProxy[y][p].proxy,targetsProxy[y][p].proxy[o]=a);t[o]=a,"object"==typeof a&&function r(e){for(var t in e)e.hasOwnProperty(t)&&null!==e[t]&&"object"==typeof e[t]&&r(e[t])}(v[o])}f(u.length)}return!0}});null===l&&(l={target:o,domDelay:a,proxy:v,observers:[],paused:!1,path:i},observables.push(l));var y={target:o,proxy:v,observable:l},p=r.indexOf(o);return...