@ice/jsx-runtime
Version:
JSX runtime for ice.
20 lines (19 loc) • 740 B
JavaScript
// @ts-ignore
import { jsx as _jsx, jsxs as _jsxs, Fragment } from "react/jsx-runtime";
import { hijackElementProps } from "./style.js";
/**
* https://github.com/reactjs/rfcs/pull/107
* @param {*} type
* @param {object} props
* @param {string} maybeKey
* @param {object} source
* @param {any} self
*/ function jsx(type, props, maybeKey, source, self) {
return _jsx(type, hijackElementProps(props), maybeKey, source, self);
}
// Same as jsx method, special case jsxs internally to take advantage of static children.
// // for now we can ship identical prod functions.
function jsxs(type, props, maybeKey, source, self) {
return _jsxs(type, hijackElementProps(props), maybeKey, source, self);
}
export { Fragment, jsx, jsxs };