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) 193 B
"use client"; "use strict";var e=require("react");exports.useDataChannel=function(t){const[r,s]=e.useState(()=>t?.get());return e.useEffect(()=>{if(t)return s(t.get()),t.subscribe(s)},[t]),r};