Skip to content

React documentation team

React Tutorial: Tic-Tac-Toe

Build React’s official tic-tac-toe game to practice components, immutable state updates and a history of moves.

FreeBeginner2–4 hoursEnglishReact
Go to course

Opens on the provider’s site. Check current access and certificate terms there.

Course overview

The official tic-tac-toe tutorial gives React concepts a small, complete application. You build the board, connect square clicks to state, determine a winner and add a history that lets you revisit previous moves. The game is simple enough that you can concentrate on data flow rather than learn an unfamiliar business domain.

What you will learn

  • Pass values and event handlers between components
  • Update state without mutating previous values
  • Store move history and render an earlier game state

Who this suits

This suits learners who know basic JavaScript and prefer building an example over reading isolated definitions. React experience is not required, although Quick Start is a useful introduction.

Before you enroll

The browser sandbox reduces initial setup, but understanding the state and history sections can take several sessions. The tutorial does not teach application authentication, backend APIs or deployment.

The tutorial, examples and sandbox access are free. It is a self-directed exercise with no instructor assessment or completion certificate.

Put it into practice

Add a restart button, then implement one of the suggested improvements without viewing a solution. Explain why each history entry needs a separate board value instead of sharing a mutated array.

Source and review

This overview is based on the provider's published information, checked on . It is an editorial assessment, not a claim that we completed the resource. Time filters are approximate study ranges; projects and exercises can take longer.

View the curriculum and current access options at React.

How YellowCourse describes and checks learning resources.

At a glance

Provider
React
Learning format
Tutorial
Price
Free
Level
Beginner
Study time (approx.)
2–4 hours
Language
English
Certificate
Not listed
Created by
React documentation team
Category
React
Page updated
12 Oct 2026