This example uses a factory function scoped JSX implementation. JSX types can be enabled:
- Per project: either importing
@vue/jsx/register
or adding it totsconfig.json
. - Per file: using
/** @jsx h */
followed byimport {h} from '@vue/jsx'
.
No global types pollution, i.e., multiple implementations of JSX can co-exist in the same project.
Clone and run pnpm install
to setup.