mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 20:53:08 +00:00
Fix typo in new tutorial code (#8045)
This commit is contained in:
@@ -392,7 +392,7 @@ handleClick(i) {
|
||||
if (calculateWinner(squares) || squares[i]) {
|
||||
return;
|
||||
}
|
||||
squares[i] = this.state.xIsNext(current.squares) ? 'X' : 'O';
|
||||
squares[i] = this.state.xIsNext ? 'X' : 'O';
|
||||
this.setState({
|
||||
history: history.concat([{
|
||||
squares: squares
|
||||
|
||||
Reference in New Issue
Block a user