Skip to content
Learn at your own pace

Learn React

Build interactive interfaces with reusable components, predictable state and clear data flow in React.

Students assemble a modular house from reusable pieces, alongside a laptop showing the same structure.
Build something bigger from reusable parts.
24lessons in 6 stages
48practice exercises
24project milestones
96quiz questions
96review cards

A clear place to start

React describes an interface as reusable components. Each component renders from its inputs and state; state updates produce the next view.

What you need first

First learn JavaScript functions, arrays, objects, modules, and event handlers. Know basic HTML and CSS before working with JSX.

Start with these ideas

  1. A component describes a piece of UI. Props supply its inputs; children let callers supply nested content.
  2. State remembers information that changes, such as whether a flashcard answer is visible. Update it through React’s state functions.
  3. Derive simple totals and filtered lists from existing state. Effects are for synchronization with external systems.

Connect it to a real project

Build a flashcard app: render a card, reveal its answer, navigate between cards, save progress, and test the interactions.

Study one concept at a time. Explain its everyday example in your own words, predict the worked example’s result, then try a small change. Use practice and quiz feedback to decide what to revisit. You can spread a lesson across several study sessions.

Set up your environment Tools, setup steps, and completion requirements

Start with the ideas above, then set up the tools below. Return to the starter example whenever a new term feels unfamiliar.

text
node --version
npm --version
# Create a React project with the official guide and a supported build tool.
# In the project: npm install, npm run dev, npm run build.
# Component examples belong in .jsx or .tsx files.
# Use a DOM-aware test runner for interaction tests and commit your lockfile.

A free account saves your progress, notes, exercise evidence and spaced review cards. To complete a lesson, score at least 80% on its quiz, finish both exercises and the project checklist, and submit your project link with a reflection. Project evidence is self-reported; use the final portfolio rubrics to seek an independent code review.

Your React learning path

Work through these foundations in order, then bring them together in a project.

24 of 24 lessons · follow the stages in order

Start with a small example

In a React project, render StudyCounter as a component. Each click updates its state and displays the new session count.

import { useState } from 'react';

export default function StudyCounter() {
    const [sessions, setSessions] = useState(0);

    return (
        <button onClick={() => setSessions((count) => count + 1)}>
            Study sessions: {sessions}
        </button>
    );
}

Try it yourself

Add a reset button and extract the session count into a separate display component.

Put it into practice

Build a flashcard practice app

Combine components and state into a small study interface.

  1. Render a question from an array of flashcards.
  2. Add a button that reveals the answer.
  3. Move between cards and track cards marked for review.
  4. Test answer visibility and navigation at the first and last card.
Keep exploring

Find your next course

Choose a language, build on it with a framework, or explore AI and search.

Showing 6 of 17 courses