UNPKG

@msom/dom

Version:

@msom/dom

13 lines (11 loc) 439 B
import { nil } from "@msom/common"; import { createElement } from "@msom/dom"; //#region src/jsx-runtime.ts function jsxDEV(type, config, maybeKey, isStaticChildren, source, self) { const { children, ..._config } = config; _config.$key = nil(_config.$key, maybeKey); return createElement(type, _config, ...[nil(children, [])].flat()); } //#endregion export { jsxDEV as jsx, jsxDEV as jsxs }; //# sourceMappingURL=jsx-runtime.js.map