A comprehensive collection of React components and mini-projects built for learning and practice purposes. Each component demonstrates different React concepts and patterns.
This repository contains a variety of React components and mini-projects that showcase different aspects of React development, from basic state management to complex UI interactions. Each component is self-contained and can be used as a reference or starting point for larger applications.
1. 📦 Load More Data
- Description: Infinite scroll/pagination component that fetches products from an API
- Features:
- API integration with dummyjson.com
- Pagination with "Load More" button
- Loading states and error handling
- Product grid display
- Tech Stack: React Hooks, Fetch API, CSS
2. 🖼️ Image Slider
- Description: Carousel component for displaying images with navigation
- Features:
- Dynamic image loading from API
- Navigation arrows
- Circle indicators
- Loading and error states
- Tech Stack: React Hooks, React Icons, Fetch API
3. ⭐ Star Rating
- Description: Interactive star rating component with hover effects
- Features:
- Clickable star ratings
- Hover effects for better UX
- Customizable number of stars
- Visual feedback
- Tech Stack: React Hooks, React Icons, CSS
- Description: Color generator that creates random HEX and RGB colors
- Features:
- HEX and RGB color generation
- Full-screen color display
- Color format switching
- Real-time color preview
- Tech Stack: React Hooks, JavaScript Math functions
5. 📚 Accordion
- Description: Collapsible content component with single and multi-selection modes
- Features:
- Single and multi-selection modes
- FAQ-style content display
- Smooth expand/collapse animations
- Toggle between modes
- Tech Stack: React Hooks, CSS, Local data
- Node.js (version 14 or higher)
- npm or yarn package manager
-
Clone the repository
git clone https://github.com/Ash-D3v/practice-react-projects.git cd practice-react-projects -
Install dependencies
npm install
-
Start the development server
npm start
-
Open your browser Navigate to
http://localhost:3000to view the application
- React - Frontend framework
- React Hooks - State management and side effects
- React Icons - Icon library
- CSS - Styling
- Fetch API - HTTP requests
- JavaScript ES6+ - Modern JavaScript features
practice-react-projects/
├── README.md
├── package.json
├── public/
├── src/
│ ├── components/
│ │ ├── load_more/
│ │ │ ├── index.jsx
│ │ │ └── style.css
│ │ ├── image_slider/
│ │ │ ├── index.jsx
│ │ │ └── style.css
│ │ ├── star_rat/
│ │ │ ├── index.jsx
│ │ │ └── style.css
│ │ ├── random_colour/
│ │ │ └── index.jsx
│ │ └── accodian/
│ │ ├── index.jsx
│ │ ├── style.css
│ │ └── data.js
│ ├── App.js
│ └── index.js
└── README.md
- Modular Design: Each component is self-contained and reusable
- Responsive: Components work across different screen sizes
- Accessible: Built with accessibility best practices
- Well Documented: Comprehensive comments and documentation
- Error Handling: Proper error states and loading indicators
npm start- Runs the app in development modenpm test- Launches the test runnernpm run build- Builds the app for productionnpm run eject- Ejects from Create React App
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Create React App for the project setup
- React Icons for the icon library
- DummyJSON for the API data
- GitHub: @Ash-D3v
- Repository: practice-react-projects
⭐ Star this repository if you found it helpful! ⭐
This is an ongoing project with more components and features planned:
- 🔍 Search Component
- 📊 Data Visualization Components
- 🎮 Game Components
- 📱 Mobile-First Components
- 🌐 API Integration Examples
- 🎯 Advanced State Management
- 🧪 Testing Examples
- 🚀 Performance Optimizations
Stay tuned for more exciting React components! 🚀