We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f73f39 commit ff60b93Copy full SHA for ff60b93
packages/vue/jsx-runtime/index.js
@@ -1,6 +1,11 @@
1
const { h, Fragment } = require('vue')
2
3
-function jsx(type, { children, ...props }) {
+function 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
packages/vue/jsx-runtime/index.mjs
import { h, Fragment } from 'vue'
0 commit comments