UNPKG

tivex

Version:

A Small, JSX library for creating Reactive-UIs.

16 lines (13 loc) 473 B
import { h } from 'tivex'; export { Fragment } from 'tivex'; const createElement = (type, props) => { props || (props = {}); if (props.children == null) return h(type, props); const childs = props.children; delete props.children; if (Array.isArray(childs)) return h(type, props, ...childs); return h(type, props, childs); }; export { createElement as jsx, createElement as jsxDEV, createElement as jsxDev, createElement as jsxs };