A simple, modern React playground for testing and showcasing React components and pages. Perfect for testing AI-generated React code or building your own components.
- π― Simple Setup: Just clone and run the setup script
- π¨ Modern Stack: React + TypeScript + Vite + Tailwind CSS
- π§ Component Generator: Create new components with one command
- π± Live Preview: See your components in action instantly
- π Auto-Documentation: Components are automatically added to the sidebar
- π Page Support: Create and test full pages
- π οΈ Developer Friendly: Hot reload, TypeScript support, and more
- Clone the repository:
git clone https://github.com/yourusername/ai-react-playground.git
cd ai-react-playground
- Run the setup script:
chmod +x setup.sh
./setup.sh
- Start the development server:
npm run dev
# Using CLI
npm run create-component Button
# Or use interactive generator
npm run generate
# Using CLI
npm run create-page Home
# Or use interactive generator
npm run generate
- Get React component code from your favorite AI
- Use the generator to create a new component
- Paste the code
- See it live in the browser
- Iterate and improve
βββ src/
β βββ components/ # Reusable UI components
β βββ pages/ # Page components
β βββ assets/ # Static assets
β βββ App.tsx # Main application component
β βββ main.tsx # Application entry point
βββ docs/ # Documentation
βββ scripts/ # Development scripts
βββ setup.sh # Setup script
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Check the Troubleshooting Guide
- Open an issue
- Start a discussion
- Add more component templates
- Add testing setup
- Add CI/CD pipeline
- Add theme support
- Add more documentation
- Add more examples
- React Team
- Vite Team
- Tailwind CSS Team
- All contributors