import './src/core.js';
import { h } from './src/render.js';
export { Fragment } from './src/render.js';

/**
 *
 * @param {any} type
 * @param {any} props
 * @param {any} [key ]
 * @returns
 */
const jsx = (type, props, key) => {
    if (props == undefined) {
        props = { key };
    } else {
        props.key = key;
    }
    return h(type, props);
};

const jsxs = jsx;

const jsxDEV = jsx;

export { jsx, jsxDEV, jsxs };
