How to use JSX? in the render function of iview table component

the relevant plug-ins for configuring babel have been installed, but if you use JSX in the table component of iview, you still have an error, ask for help!

Jan.10,2022

you need to see the document ide/render-function.html" rel=" nofollow noreferrer "> https://cn.vuejs.org/v2/guide.


you need to install these plug-ins first
babel-plugin-syntax-jsx
babel-plugin-transform-vue-jsx
babel-helper-vue-jsx-merge-props
babel-preset-env
reference address: https://github.com/vuejs/babe.
to facilitate the use of v-model in JSX components also need to install the following Add
babel-plugin-jsx-v-model
and then you can write JSX very Happy

clipboard.png

Menu