A Vite plugin which adds JSX enhancements for Twind
-
Install from npm:
npm install -D @twind/vite-plugin-jsx
-
Add to the
plugins
section of your vite config:import { defineConfig } from 'vite' import twindJsx from '@twind/vite-plugin-jsx' export default defineConfig({ // other config ... plugins: [ // other plugins ... twindJsx(), ], })
And you're done!