Tiny changes to tutorial (#10048)
* Initial commit * PR feedback
Henry Harris committed
Jun 29, 2017 at 11:00 UTC
dccc3850dc8fa33d517cd244686e4257b6e1087b
1 file changed
+2
-2
docs/tutorial/tutorial.md
+2
-2
@@ -877,7 +877,7 @@ We also need to change it a little, since Game state is structured differently.
877
squares[i] = this.state.xIsNext ? 'X' : 'O';
878
this.setState({
879
history: history.concat([{
880
- squares: squares
880
+ squares: squares,
881
}]),
882
xIsNext: !this.state.xIsNext,
883
});
@@ -1029,7 +1029,7 @@ Add a method called `jumpTo` to the Game class:
1029
jumpTo(step) {
1030
this.setState({
1031
stepNumber: step,
1032
- xIsNext: (step % 2) ? false : true,
1032
+ xIsNext: (step % 2) === 0,
1033
});
1034
}
1035