Skip to content

Commit 5647a94

Browse files
authored
docs(tutorial-tic-tac-toe.md): fix typos (#5515)
1 parent 114ad3e commit 5647a94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

beta/src/content/learn/tutorial-tic-tac-toe.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ function Square({ value }) {
589589
}
590590
```
591591

592-
For now, you should see a empty board:
592+
For now, you should see an empty board:
593593

594594
![empty board](../images/tutorial/empty-board.png)
595595

@@ -982,7 +982,7 @@ function Square({value}) {
982982
}
983983
```
984984
985-
At this point you should see a empty tic-tac-toe board:
985+
At this point you should see an empty tic-tac-toe board:
986986
987987
![empty board](../images/tutorial/empty-board.png)
988988
@@ -1195,7 +1195,7 @@ export default function Board() {
11951195
11961196
Notice the new `() =>` syntax. Here, `() => handleClick(0)` is an *arrow function,* which is a shorter way to define functions. When the square is clicked, the code after the `=>` "arrow" will run, calling `handleClick(0)`.
11971197
1198-
Now you need to update the other eight squares to call `handleClick` from the arrow functions you pass. Make sure that the argument for each call the `handleClick` corresponds to the index of the correct square:
1198+
Now you need to update the other eight squares to call `handleClick` from the arrow functions you pass. Make sure that the argument for each call of the `handleClick` corresponds to the index of the correct square:
11991199
12001200
```js {6-8,11-13,16-18}
12011201
export default function Board() {
@@ -2247,7 +2247,7 @@ body {
22472247
22482248
As you iterate through `history` array inside the function you passed to `map`, the `squares` argument goes through each element of `history`, and the `move` argument goes through each array index: `0`, `1`, `2`, …. (In most cases, you'd need the actual array elements, but in this case you don't use `squares` to render a list of moves.)
22492249
2250-
For each move in the tic-tac-toe game's history, you create a list item `<li>` which contains a button `<button>`. The button has a `onClick` handler which calls a function called `jumpTo` (that you haven't implemented yet).
2250+
For each move in the tic-tac-toe game's history, you create a list item `<li>` which contains a button `<button>`. The button has an `onClick` handler which calls a function called `jumpTo` (that you haven't implemented yet).
22512251
22522252
For now, you should see a list of the moves that occurred in the game and an error in the developer tools console.
22532253

0 commit comments

Comments
 (0)