Files
trackgo-fe/apps/docs-dev/storybook-static/assets/react-18-D-4w0D-r.js
T
Firman Ramdhani 554c5fbee3 feat: add initial TypeScript and ESLint configurations for library and React applications
- Created TypeScript configuration files for library and React applications.
- Added ESLint configurations for library, React, and Storybook.
- Implemented a basic Button component in the UI package.
- Set up Vite for the docs development environment.
2026-01-09 18:26:12 +07:00

2 lines
770 B
JavaScript

import{r as s}from"./index-DAME-NcR.js";import{c as l}from"./client-dutLrLv-.js";var n=new Map;function m(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var a=({callback:e,children:r})=>{let t=s.useRef();return s.useLayoutEffect(()=>{t.current!==e&&(t.current=e,e())},[e]),r};typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let e=null,r=null;return{promise:new Promise((t,o)=>{e=t,r=o}),resolve:e,reject:r}});var E=async(e,r,t)=>{let o=await c(r,t);if(m()){o.render(e);return}let{promise:u,resolve:i}=Promise.withResolvers();return o.render(s.createElement(a,{callback:i},e)),u},v=(e,r)=>{let t=n.get(e);t&&(t.unmount(),n.delete(e))},c=async(e,r)=>{let t=n.get(e);return t||(t=l.createRoot(e,r),n.set(e,t)),t};export{E as renderElement,v as unmountElement};