mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Fix #5412
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user