Skip to content

Commit 779ff9a

Browse files
authored
Apply suggestion from @eps1lon
1 parent 67ce05f commit 779ff9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ JavaScript supports [closures](https://developer.mozilla.org/en-US/docs/Web/Java
11371137
11381138
</Note>
11391139
1140-
Now you can add X's to the board... but only to the upper left square. Your `handleClick` function is hardcoded to update the index for the upper left square (`0`). Let's update `handleClick` to be able to update any square. Add a parameter `i` to the `handleClick` function that takes the index of the square to update:
1140+
Now you can add X's to the board... but only to the upper left square. Your `handleClick` function is hardcoded to update the index for the upper left square (`0`). Let's update `handleClick` to be able to update any square. Add an argument `i` to the `handleClick` function that takes the index of the square to update:
11411141
11421142
```js {4,6}
11431143
export default function Board() {

0 commit comments

Comments
 (0)