Web developmentIntermediate

React Basics

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.

11 lessons
Start the course

Course content

  1. 1

    Introduction to React

    Understand what React is, the idea of components and what you need to know before starting.

  2. 2

    Installation and First Project

    Install Node.js, create a project with Vite and display your first component.

  3. 3

    JSX

    Write markup inside JavaScript, insert expressions and learn the rules of JSX.

  4. 4

    Components

    Create, import and compose components to build an interface.

  5. 5

    Props

    Pass data to components, destructuring, default values and children.

  6. 6

    State with useState

    Store data that changes, update the display and follow the rules of hooks.

  7. 7

    Handling Events

    onClick, onChange, the event object and passing arguments to handlers.

  8. 8

    Conditions and Lists

    Render conditionally, loop over arrays with map and use the key prop.

  9. 9

    Forms

    Controlled inputs, submitting with onSubmit and handling several fields with a single state.

  10. 10

    Effects with useEffect

    Fetch data from an API, handle loading and clean up effects.

  11. 11

    Sharing State and Creating Your Own Hooks

    Lift state up to the parent and write your own hooks, including useLocalStorage.