dan 2 years ago
committed by GitHub
parent
commit
f741a42bac
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      beta/src/content/learn/tutorial-tic-tac-toe.md

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

@ -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} ```js {7}
export default function Board() { export default function Board() {

Loading…
Cancel
Save