From a5ff2f1e9c94765e4d167317f5248cefe3abc2e9 Mon Sep 17 00:00:00 2001 From: Taeho Kim Date: Sun, 23 Oct 2016 05:46:51 +0900 Subject: [PATCH] Fix typo in new tutorial code (#8045) --- docs/tutorial/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/tutorial.md b/docs/tutorial/tutorial.md index fd17c1d08c..a2bc0bcbf2 100644 --- a/docs/tutorial/tutorial.md +++ b/docs/tutorial/tutorial.md @@ -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