UNPKG

rvx

Version:

A signal based rendering library

13 lines 393 B
import { createElement } from "../internals/create-element.js"; export { Fragment } from "./fragment.js"; export function jsx(type, props, ...children) { props ??= {}; if (children.length > 0) { props.children ??= children; } if (typeof type === "function") { return type(props); } return createElement(type, props); } //# sourceMappingURL=legacy.js.map