This is a React-based application designed to help you learn React through hands-on projects. Starting with the basics, it guides you on how to create simple React functional components and use hooks to manage state. The project includes a variety of sample projects, such as building a to-do list and a clock, making it a practical resource. Whether you're new to React or looking for a refresher, this project is a great starting point. Check out the Branches section of this README file, where each branch focuses on different aspects of learning React.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You need to install below items before running this project:
- Node.js (https://nodejs.org/en/download/)
- npm (comes with Node.js)
- Git (https://git-scm.com/downloads)
A step-by-step guide to getting a development environment running.
- Clone the repository
git clone https://github.com/yr5913/my-react-app.git
- Navigate to the folder
cd my-react-app
- Install dependencies
npm install
- Run the Application
npm run dev
Your application will run on port 5173. You can access your application using the link http://localhost:5173/
- simple-component -- create a simple component
- card-component -- create a card component
- styling-css -- learn how to use different styling such as global, module level and inline css in react
- props -- using props in react
- conditional-render -- rendering items based on conditions
- render-lists -- rendering lists in react components
- click-events -- handling click events in react
- hook -- intro to hooks and use of useState hook
- on-change-event -- working with on change event and useState hook
- color-picker-app -- building a color picker app using the things learnt so far
- updater-functions -- use of updater functions in state setter methods
- object-state -- working with state of objects
- arrays-state -- working with state of arrays
- array-of-objects-state -- working with array of objects state
- todo-list-app -- building a to-do list app using the array of objects state
- use-effect-hook -- learning the usage of useEffect hook
- digital-clock-app -- building a digital clock app using react
- use-context-hook -- usage of useContext hooks to avoid props drilling
- use-ref-hook -- usage of useRef hook