vue-jsx-vapor
Version:
Convert Vue JSX to Vapor
12 lines (10 loc) • 298 B
JavaScript
import { Fragment, h } from "vue";
//#region src/jsx-runtime.ts
function jsx(type, props, key) {
const { children } = props;
delete props.children;
if (arguments.length > 2) props.key = key;
return h(type, props, children);
}
//#endregion
export { Fragment, jsx, jsx as jsxDEV, jsx as jsxs };