Skip to content

Ash-D3v/practice-react-projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 React Practice Projects Collection

A comprehensive collection of React components and mini-projects built for learning and practice purposes. Each component demonstrates different React concepts and patterns.

📋 Table of Contents

🎯 Overview

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.

🧩 Components

  • 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
  • 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

🚀 Getting Started

Prerequisites

  • Node.js (version 14 or higher)
  • npm or yarn package manager

Installation

  1. Clone the repository

    git clone https://github.com/Ash-D3v/practice-react-projects.git
    cd practice-react-projects
  2. Install dependencies

    npm install
  3. Start the development server

    npm start
  4. Open your browser Navigate to http://localhost:3000 to view the application

🛠️ Technologies Used

  • 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

📁 Project Structure

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

🎨 Features

  • 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

🔧 Available Scripts

  • npm start - Runs the app in development mode
  • npm test - Launches the test runner
  • npm run build - Builds the app for production
  • npm run eject - Ejects from Create React App

🤝 Contributing

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.

How to Contribute

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

📞 Contact


Star this repository if you found it helpful!


🔮 To Be Continued...

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! 🚀

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published