vue项目如何使用jsx 写法

$ npm install babel-plugin-syntax-jsx babel-plugin-transform-vue-jsx babel-helper-vue-jsx-merge-props babel-preset-env --save-dev

npm i babel-plugin-jsx-v-model --save-dev

.babelrc

"plugins": ["transform-runtime","transform-vue-jsx", "jsx-v-model"],

转载于:https://juejin.im/post/5d0749c16fb9a07eef6a0ceb

猜你喜欢

转载自blog.csdn.net/weixin_33912246/article/details/93183299