This example demonstrates how to use React Code View with Vite.
- ⚡ Lightning fast HMR with Vite
- 🎨 Theme switching (light/dark)
- 📝 Live code editing
- 🔄 Multiple interactive examples
- 🎯 TypeScript support
npm installnpm run devOpen http://localhost:3000 in your browser.
npm run buildnpm run previewThe example uses a minimal Vite configuration with:
@vitejs/plugin-react- React plugin for Vite- CodeView optimization for faster builds
See vite.config.ts for details.
- Counter - Simple state management
- Form - Form handling with validation
- List - Dynamic list with add/remove