This course guides you step by step through learning React, from setting up the project to a complete to-do list application, including JSX, components, props, state, events, lists, forms, effects and custom hooks. Each lesson combines explanation, concrete example and small hands-on exercise.
Introduction to React
Understand what React is, the idea of components and what you need to know before starting.
Installation and First Project
Install Node.js, create a project with Vite and display your first component.
JSX
Write markup inside JavaScript, insert expressions and learn the rules of JSX.
Components
Create, import and compose components to build an interface.
Props
Pass data to components, destructuring, default values and children.
State with useState
Store data that changes, update the display and follow the rules of hooks.
Handling Events
onClick, onChange, the event object and passing arguments to handlers.
Conditions and Lists
Render conditionally, loop over arrays with map and use the key prop.
Forms
Controlled inputs, submitting with onSubmit and handling several fields with a single state.
Effects with useEffect
Fetch data from an API, handle loading and clean up effects.
Sharing State and Creating Your Own Hooks
Lift state up to the parent and write your own hooks, including useLocalStorage.