From dccc3850dc8fa33d517cd244686e4257b6e1087b Mon Sep 17 00:00:00 2001 From: Henry Harris Date: Thu, 29 Jun 2017 11:00:04 -0400 Subject: [PATCH] Tiny changes to tutorial (#10048) * Initial commit * PR feedback --- docs/tutorial/tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/tutorial.md b/docs/tutorial/tutorial.md index 2577c5ca56..62115e4782 100644 --- a/docs/tutorial/tutorial.md +++ b/docs/tutorial/tutorial.md @@ -877,7 +877,7 @@ We also need to change it a little, since Game state is structured differently. squares[i] = this.state.xIsNext ? 'X' : 'O'; this.setState({ history: history.concat([{ - squares: squares + squares: squares, }]), xIsNext: !this.state.xIsNext, }); @@ -1029,7 +1029,7 @@ Add a method called `jumpTo` to the Game class: jumpTo(step) { this.setState({ stepNumber: step, - xIsNext: (step % 2) ? false : true, + xIsNext: (step % 2) === 0, }); }