Skip to content

“A collection of hands-on React exercises built with reusable components, designed to help beginners and learners grasp React concepts step by step. Each exercise demonstrates core features like props, state, hooks, and component structure—making React easy to learn and apply in real projects.”

Notifications You must be signed in to change notification settings

Jenidevops/React-excercises

Repository files navigation

⚛️ React Learning Playground

Welcome to the React Learning Playground 🎉
A collection of interactive React exercises built with separate components to help you master React step by step.
If you follow this codebase, you’ll quickly understand props, state, hooks, and component structure — making React easier than ever! 🚀


✨ Why this project?

Learning React can feel overwhelming 😵‍💫 with so many concepts at once.
This repo breaks things down into bite-sized exercises that focus on one concept at a time, so you can:

  • 🔹 Learn by doing, not just reading
  • 🔹 Understand real-world component structure
  • 🔹 Explore reusable patterns and best practices
  • 🔹 Build a strong foundation for larger projects

📚 What You’ll Learn

  • ⚛️ Components & JSX – how to structure your app
  • 📩 Props – passing data between components
  • 🔄 State & Events – making your app dynamic
  • 🪝 Hooks (useState, useEffect) – modern React essentials
  • 🔗 Component Communication – parent-child interaction
  • 🎨 Styling – inline, CSS modules, and Tailwind (optional)
  • 🛠️ Project Structure – clean and scalable patterns

📂 Project Structure

react-learning-exercises/ ┣ 📁 components # Each concept has its own component ┣ 📄 App.jsx # Renders exercises ┣ 📄 main.jsx # Entry point ┗ 📄 index.html # Root HTML file

yaml

Each component = one exercise ✔️
Follow them in order and you’ll build up your skills gradually.


🚀 Getting Started

  1. Clone the repo
    git clone https://github.com/your-username/react-exercises.git
    cd react-exercises

Install dependencies

bash

npm install Run the project

bash

npm run dev Open in browser 👉 http://localhost:5173

🎯 Who is this for? 🆕 Beginners starting with React

🧑‍💻 Developers refreshing fundamentals

📚 Students learning component-based design

🚀 Anyone curious about how React really works

🌟 Future Enhancements 📘 Add context API & reducers

🧩 Include routing exercises

💅 Showcase styling techniques with Tailwind

🔧 Deploy live demo on GitHub Pages

🤝 Contributing Want to make this repo even better?

Fork the project

Add your own React exercises or improvements

Open a pull request 🚀

📝 License This project is open source under the MIT License. So feel free to learn, remix, and share 🎉

⭐ Don’t forget to star this repo if you find it helpful! Learning React is a journey — and this repo is your first step to mastering it! 🏆

About

“A collection of hands-on React exercises built with reusable components, designed to help beginners and learners grasp React concepts step by step. Each exercise demonstrates core features like props, state, hooks, and component structure—making React easy to learn and apply in real projects.”

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published