A function that receives props and children and returns a component tree.
Returns
A callable component function that can be invoked with optional props and children.Usage
Simple component
Component with children
Notes
makeComponentis a legacy utility. For new components, use defineComponent instead, which provides support for metadata, property schemas, previews, and thumbnails.- Components created with
makeComponentcan use hooks like useState and access the environment. - This function is not exported in
metabind.d.ts— it is an internal runtime function used by the rendering engine. It may not be available in all authoring contexts.
See Also
- defineComponent — the recommended way to define components