This commit is contained in:
Amour1688
2020-05-13 19:14:28 +08:00
parent 1dd2f81deb
commit b5a91efd93
11 changed files with 481 additions and 2 deletions

View File

@ -1,2 +1,24 @@
# jsx
jsx for vue 3
# Babel Preset JSX for Vue 3.0
To add Vue JSX support.
## Syntax
functional component
```jsx
const App = () => <div></div>
```
with setup render
```jsx
const App = defineComponent(() => {
const count = ref(0);
return () => (
<div>
{count.value}
</div>
)
})
```