mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2024-11-10 09:39:14 +08:00
JSX for Vue 3
example | ||
src | ||
test | ||
.babelrc | ||
.eslintrc | ||
.gitignore | ||
.jest.js | ||
index.html | ||
LICENSE | ||
package.json | ||
README.md | ||
webpack.config.js |
Babel Preset JSX for Vue 3.0
To add Vue JSX support.
Syntax
functional component
const App = () => <div></div>
with setup render
const App = defineComponent(() => {
const count = ref(0);
return () => (
<div>
{count.value}
</div>
)
})