UNPKG

fluxel

Version:

An ultra-lightweight, high-performance library for efficient DOM building and dynamic web UIs

18 lines (17 loc) 664 B
import Fluxel from "../reactive/index.js"; function jsx(type, props, _key) { if (props === null || props === void 0 ? void 0 : props.className) { var _props; var _classList; (_classList = (_props = props).classList) !== null && _classList !== void 0 ? _classList : _props.classList = []; props.classList.push(props.className.split(" ").filter(Boolean)); delete props.className; } if (typeof type === "string") { return Fluxel.createElement(type, props); } else { return type(props); } } export { jsx, jsx as jsxs, jsx as jsxDEV }; export { default as Fragment } from "../jsxFragment.js";