Skip to content

Commit 9e5e0aa

Browse files
committed
tweak 1d
1 parent 1eca24c commit 9e5e0aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/content/1/en/part1d.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,8 @@ don't write more code but rather find and fix the problem **immediately**. There
390390
Old-school, print-based debugging is always a good idea. If the component
391391

392392
```js
393-
const Button = ({ onClick, text }) => (
394-
<button onClick={onClick}>
393+
const Button = ({ handleClick, text }) => (
394+
<button onClick={handleClick}>
395395
{text}
396396
</button>
397397
)
@@ -402,9 +402,9 @@ is not working as intended, it's useful to start printing its variables out to t
402402
```js
403403
const Button = (props) => {
404404
console.log(props) // highlight-line
405-
const { onClick, text } = props
405+
const { handleClick, text } = props
406406
return (
407-
<button onClick={onClick}>
407+
<button onClick={handleClick}>
408408
{text}
409409
</button>
410410
)

0 commit comments

Comments
 (0)