vue-jsx-vapor
Version:
Vapor Mode of Vue JSX
12 lines (9 loc) • 310 B
JavaScript
import { Fragment, h } from 'vue'
function jsx(type, props, key) {
const { children, 'v-slots': vSlots } = props
delete props.children
delete props['v-slots']
if (arguments.length > 2) props.key = key
return h(type, props, vSlots || children)
}
export { Fragment, jsx, jsx as jsxDEV, jsx as jsxs }