Skip to content

Commit 0e41c2f

Browse files
committedMar 5, 2023
Merge branch 'main' of https://github.com/reactjs/reactjs.org into sync-ba290ad4
2 parents 84d730f + ba290ad commit 0e41c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1410,7 +1410,7 @@ But wait, there's a problem. Try clicking on the same square multiple times:
14101410
14111411
The `X` is overwritten by an `O`! While this would add a very interesting twist to the game, we're going to stick to the original rules for now.
14121412
1413-
When you mark a square with a `X` or a `O` you aren't first checking to see if the square already has a `X` or `O` value. You can fix this by *returning early*. You'll check to see if the square already has a `X` or and `O`. If the square is already filled, you will `return` in the `handleClick` function early--before it tries to update the board state.
1413+
When you mark a square with a `X` or an `O` you aren't first checking to see if the square already has a `X` or `O` value. You can fix this by *returning early*. You'll check to see if the square already has a `X` or an `O`. If the square is already filled, you will `return` in the `handleClick` function early--before it tries to update the board state.
14141414
14151415
```js {2,3,4}
14161416
function handleClick(i) {

0 commit comments

Comments
 (0)
Please sign in to comment.