Fix typo in new tutorial code (#8045)

This commit is contained in:
Taeho Kim
2016-10-23 05:46:51 +09:00
committed by Dan Abramov
parent 4c72dce721
commit ac5129d7cb

View File

@@ -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