Skip to content
Myr

Update code block in tutorial-tic-tac-toe.md (#3373)

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

authored by Andrew Taradiuk · committed by GitHub · parent 6813f7b · Browse files · 1 file+2 added−2 removed
This commit

State

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

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/guides/tutorial-tic-tac-toe.md+2 added-2 removed
913 unmodified lines
914```jsx {8-10,21}915export default function Game() {916 const history = useGameStore((state) => state.history)917 const setHistory = useGameStore((state) => state.setHistory)918 const currentMove = useGameStore((state) => state.currentMove)919 const setCurrentMove = useGameStore((state) => state.setCurrentMove)918 const xIsNext = useGameStore((state) => state.xIsNext)919 const setXIsNext = useGameStore((state) => state.setXIsNext)920 const currentSquares = history[history.length - 1]921922 function handlePlay(nextSquares) {923 // TODO
506 unmodified lines