UNPKG

@ice/jsx-runtime

Version:

JSX runtime for ice.

13 lines (12 loc) 544 B
import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; import { createElement as reactCreateElement } from "react"; import { hijackElementProps } from "./style.js"; export function createElement(type, props) { for(var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){ children[_key - 2] = arguments[_key]; } return reactCreateElement.apply(void 0, [ type, hijackElementProps(props) ].concat(_to_consumable_array(children))); }