vue3-core/packages/vue/jsx-runtime/index.mjs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
265 B
JavaScript
Raw Normal View History

import { h, Fragment } from 'vue'
2023-03-29 16:17:34 +08:00
function jsx(type, props, key) {
const { children } = props
delete props.children
if (arguments.length > 2) {
props.key = key
}
return h(type, props, children)
}
export { Fragment, jsx, jsx as jsxs, jsx as jsxDEV }