Welcome to the React Exercises repository! This repository contains a series of exercises designed to help you practice and improve your React development skills. Each exercise is structured as an independent project, allowing you to focus on a specific concept without dependencies on other exercises.
This repository consists of individual React exercises, with each exercise set up as a separate project. You can work on the exercises independently, without needing to worry about any interdependencies.
Each exercise includes its own package.json
, meaning you will need to install dependencies and run the project individually for each exercise.
Before starting, make sure you have the following installed on your machine:
-
Clone this repository:
git clone https://github.com/latifii/react-exercises.git cd react-exercises
-
Navigate to the folder of the exercise you'd like to work on:
cd Exercise1
-
Install the dependencies for that specific exercise:
npm install
-
Start the development server for that exercise:
npm start
This will start the React app for the chosen exercise. Open http://localhost:3000 to view it in your browser.
- You will need to repeat the above steps for each individual exercise.
- Each exercise runs independently, so changes in one exercise won't affect others.
If you'd like to contribute to this project by adding new exercises or improving the existing ones, follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-new-exercise
). - Make your changes and commit them (
git commit -m 'Add new exercise'
). - Push the branch (
git push origin feature-new-exercise
). - Open a pull request.
The exercises are stored in individual folders, with each folder containing a separate React project. Here's a list of the available exercises:
- Exercise 1: Birthday Reminder
- Exercise 2: Tours
- Exercise 3: Reviews
- Exercise 4: Accordion
- Exercise 5: Menu
Each exercise has its own README.md
file with specific instructions and goals for that exercise. Make sure to check those files for detailed steps.
`react-exercises/
│
├── 01-birthday-reminder/
│ ├── src/
│ ├── package.json
│ └── README.md
│
├── 02-tours/
│ ├── src/
│ ├── package.json
│ └── README.md
│
└── 03-reviews/
├── src/
├── package.json
└── README.md`