Fix typo in new tutorial code (#8045)
Taeho Kim committed
Oct 23, 2016 at 05:46 UTC
a5ff2f1e9c94765e4d167317f5248cefe3abc2e9
1 file changed
+1
-1
docs/tutorial/tutorial.md
+1
-1
@@ -392,7 +392,7 @@ handleClick(i) {
392
if (calculateWinner(squares) || squares[i]) {
393
return;
394
}
395
- squares[i] = this.state.xIsNext(current.squares) ? 'X' : 'O';
395
+ squares[i] = this.state.xIsNext ? 'X' : 'O';
396
this.setState({
397
history: history.concat([{
398
squares: squares