nano-jsx
Version:
SSR first, lightweight 1kB JSX library.
14 lines • 468 B
JavaScript
/* eslint-disable prefer-const */
export { Fragment } from '../fragment.js';
import { h } from '../core.js';
const createNode = function (type, props) {
let { children = [], ..._props } = props;
if (!Array.isArray(children))
children = [children];
return h(type, _props, ...children);
};
export { createNode as jsx };
export { createNode as jsxs };
export { createNode as jsxDev };
export { createNode as jsxDEV };
//# sourceMappingURL=index.js.map