This example demonstrates how to use React Code View with Rollup.
- 🎯 Rollup bundler with optimized builds
- 🎨 Theme switching (light/dark)
- 📝 Live code editing
- 🔄 Multiple interactive examples
- 💨 TypeScript support
- 🔥 Live reload in development
npm installnpm run devOpen http://localhost:3002 in your browser.
npm run buildThe production build will be in the dist folder.
npm run serveThe example uses Rollup with:
@rollup/plugin-typescript- TypeScript compilationrollup-plugin-postcss- CSS processing@rollup/plugin-node-resolve- Node module resolution@rollup/plugin-commonjs- CommonJS to ES6 conversionrollup-plugin-serve- Development serverrollup-plugin-livereload- Live reload
See rollup.config.js for details.
- Modal - Modal dialog with overlay
- Dropdown - Custom dropdown menu
- Tooltip - Hover tooltip component