Skip to content
Myr

docs: fix missing highlight on setXIsNext line in tic-tac-toe tutorial (#3524)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Copilot · committed by GitHub · parent 566b5bf · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/learn/guides/tutorial-tic-tac-toe.md+1 added-1 removed
462 unmodified lines
463Each time a player moves, `xIsNext` (a boolean) will be flipped to determine which player goes next464and the game's state will be saved. You'll update the Board's `handleClick` function to flip the465value of `xIsNext`:466467```jsx {2-3,6,11}467```jsx {2-3,6,11,13}468export default function Board() {469 const xIsNext = useGameStore((state) => state.xIsNext)470 const setXIsNext = useGameStore((state) => state.setXIsNext)471 const squares = useGameStore((state) => state.squares)
958 unmodified lines