Skip to content

Commit 3e34333

Browse files
authored
Merge pull request #4124 from shreyareddyedulakanti/patch-3
Update part1d.md
2 parents f929412 + bd8de17 commit 3e34333

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/1/en/part1d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ The event handler is now set to a function call:
790790
<button onClick={hello()}>button</button>
791791
```
792792

793-
Earlier on we stated that an event handler may not be a call to a function and that it has to be a function or a reference to a function. Why then does a function call work in this case?
793+
Earlier, we stated that an event handler may not be a function call; rather, it has to either be a function definition or a reference to one. Why then does a function call work in this case?
794794

795795
When the component is rendered, the following function gets executed:
796796

0 commit comments

Comments
 (0)