Component
Component turns any value into a callable factory, useful for creating dynamic or untracked components. You can preset props at factory time; calling the factory with more props shallow-merges them over the presets (later wins, key-by-key).
# Component
| name | type | description |
|---|---|---|
| component | fn | Element | tagName | object with toString | what to turn into a factory. Strings become intrinsic elements ('div'); functions become user components; Elements are wrapped as-is; an object with a toString is coerced via that method (handy for third-party wrappers). |
| [props] | object | preset props. Omitted entirely when you only want the factory. When the factory is later called with overrides, the two are shallow-merged as { ...preset, ...override }. |