UNPKG

@meonode/ui

Version:

A structured approach to component composition, direct CSS-first prop styling, built-in theming, smart prop handling (including raw property pass-through), and dynamic children.

3 lines (2 loc) 192 B
"use client"; import{useState as r,useEffect as t}from"react";function e(e){const[n,o]=r(()=>e?.get());return t(()=>{if(e)return o(e.get()),e.subscribe(o)},[e]),n}export{e as useDataChannel};