UNPKG

303 BJavaScriptView Raw
1const { h, Fragment } = require('vue')
2
3function jsx(type, props, key) {
4 const { children } = props
5 delete props.children
6 if (arguments.length > 2) {
7 props.key = key
8 }
9 return h(type, props, children)
10}
11
12exports.jsx = jsx
13exports.jsxs = jsx
14exports.jsxDEV = jsx
15exports.Fragment = Fragment