vani-jsx-setup
Installation
SKILL.md
Vani JSX Setup
Instructions for enabling JSX with Vani and creating JSX-based components.
When to Use
Use this when a project wants .tsx files with Vani or needs a JSX example.
Steps
- Ensure
tsconfig.jsonsetsjsxtoreact-jsxandjsxImportSourceto@vanijs/vani. - Create a
.tsxcomponent usingcomponentand return JSX. - Keep state in local variables and call
handle.update()on events. - Mount with
renderToDOMas usual.
Arguments
- tsconfigPath - path to TypeScript config (defaults to
tsconfig.json) - componentName - name of the JSX component (defaults to
Counter)
Related skills
More from itsjavi/vani
vani-spa-setup
Create a minimal Vani SPA root with explicit updates
8vani-scheduling
Schedule explicit updates with microtasks and transitions
8vani-spa-app
Updates Vani SPA app UI in src/spa-app, especially the landing page/homepage and landing examples.
8vani-ssr-hydration
Implement SSR, hydration, and selective activation with Vani
8vani-async-client-only
Use async components, fallbacks, and client-only islands
8vani-incremental-mount
Mount Vani components inside existing apps or DOM islands
8