JSX for Vue 3
Go to file
2020-05-17 22:48:13 +08:00
example support Fragment 2020-05-17 16:36:38 +08:00
lib feat: add directive feature 2020-05-17 22:48:13 +08:00
src feat: add directive feature 2020-05-17 22:48:13 +08:00
test feat: add directive feature 2020-05-17 22:48:13 +08:00
.babelrc support mergeProps 2020-05-16 21:24:51 +08:00
.eslintrc jsx 2020-05-13 19:14:28 +08:00
.gitignore with @vue/test-utils 2020-05-14 13:24:22 +08:00
.jest.js feat: add directive feature 2020-05-17 22:48:13 +08:00
index.html jsx 2020-05-13 19:14:28 +08:00
LICENSE Initial commit 2020-05-08 16:58:50 +08:00
package.json support Fragment 2020-05-17 16:36:38 +08:00
README.md jsx 2020-05-13 19:14:28 +08:00
webpack.config.js feat: add directive feature 2020-05-17 22:48:13 +08:00

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>
  )
})