This commit is contained in:
dan
2022-12-29 01:48:34 +00:00
committed by GitHub
parent 33c4d58f99
commit f741a42bac

View File

@@ -1096,7 +1096,7 @@ function Square({ value, onSquareClick }) {
}
```
Now you'll connect the `onSquareClick` prop to a function in the `Board` component that you'll name `handleSquareClick`. To connect `onSquareClick` to `handleClick` you'll pass a function to the `onSquareClick` prop of the first `Square` component:
Now you'll connect the `onSquareClick` prop to a function in the `Board` component that you'll name `handleClick`. To connect `onSquareClick` to `handleClick` you'll pass a function to the `onSquareClick` prop of the first `Square` component:
```js {7}
export default function Board() {