You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/tutorial/tutorial.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -524,7 +524,7 @@ While we're cleaning up the code, we also changed `onClick={() => props.onClick(
524
524
525
525
An obvious defect in our game is that only X can play. Let's fix that.
526
526
527
-
Let's default the first move to be by 'X'. Modify our starting state in our Board constructor.
527
+
Let's default the first move to be by 'X'. Modify our starting state in our Board constructor:
528
528
529
529
```javascript{6}
530
530
classBoardextendsReact.Component {
@@ -537,7 +537,7 @@ class Board extends React.Component {
537
537
}
538
538
```
539
539
540
-
Each time we move we shall toggle `xIsNext` by flipping the boolean value and saving the state. Now update Board's `handleClick` function to flip the value of `xIsNext`.
540
+
Each time we move we shall toggle `xIsNext` by flipping the boolean value and saving the state. Now update Board's `handleClick` function to flip the value of `xIsNext`:
541
541
542
542
```javascript{3,6}
543
543
handleClick(i) {
@@ -550,7 +550,7 @@ Each time we move we shall toggle `xIsNext` by flipping the boolean value and sa
550
550
}
551
551
```
552
552
553
-
Now X and O take turns. Next, change the "status" text in Board's `render` so that it also displays who is next.
553
+
Now X and O take turns. Next, change the "status" text in Board's `render` so that it also displays who is next:
0 commit comments