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.

6 lines 363 B
import{createRoot}from"react-dom/client";/** * Renders a Meonode instance into a DOM container. * @param node The Meonode instance to render (e.g., created with Div(), P(), etc.). * @param container The DOM element to mount the content into. * @returns The React root instance. */export function render(a,b){var c=createRoot(b);return c.render(a.render()),c}