liquid-glass-react-ui
Version:
Missing React, typescript NPM library creation template
3 lines (2 loc) • 1.04 kB
JavaScript
(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("react/jsx-runtime"),require("react"),require("lodash")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","lodash"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e["Library name"]={},e.jsxRuntime,e.React,e.lodash))})(this,function(e,t,c,u){"use strict";const o={counter:"_counter_1wts1_1",header:"_header_1wts1_10",button:"_button_1wts1_16"},i=r=>{const[n,s]=c.useState(r);return{count:n,incrementCount:()=>s(n+1)}},d=({initialValue:r=0})=>{const{count:n,incrementCount:s}=i(r);return c.useEffect(()=>{u.throttle(()=>{console.log("throttle")},10)()},[]),t.jsxs("div",{className:o.counter,children:[t.jsx("h2",{className:o.header,children:"Counter"}),t.jsx("button",{className:o.button,type:"button",onClick:s,children:"Increment by one"}),t.jsxs("div",{children:["Total value: ",t.jsx("strong",{children:n})]})]})};e.Counter=d,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
//# sourceMappingURL=index.umd.cjs.map