Skip to content

Commit 91181fd

Browse files
authored
Update part2c.md
In this sentence: "The registration of the callback happens by giving the eventHandler variable, referring to the event-handler function, AS A PARAMETER to the then method of the promise." the capitalized part "AS A PARAMETER" I think should be "as an argument" as it refers to a variable being passed into the function.
1 parent 009ee94 commit 91181fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/2/en/part2c.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ useEffect(() => {
491491
}, [])
492492
```
493493

494-
A reference to an event handler function is assigned to the variable <em>eventHandler</em>. The promise returned by the <em>get</em> method of Axios is stored in the variable <em>promise</em>. The registration of the callback happens by giving the <em>eventHandler</em> variable, referring to the event-handler function, as a parameter to the <em>then</em> method of the promise. It isn't usually necessary to assign functions and promises to variables, and a more compact way of representing things, as seen below, is sufficient.
494+
A reference to an event handler function is assigned to the variable <em>eventHandler</em>. The promise returned by the <em>get</em> method of Axios is stored in the variable <em>promise</em>. The registration of the callback happens by giving the <em>eventHandler</em> variable, referring to the event-handler function, as an argument to the <em>then</em> method of the promise. It isn't usually necessary to assign functions and promises to variables, and a more compact way of representing things, as seen below, is sufficient.
495495

496496
```js
497497
useEffect(() => {

0 commit comments

Comments
 (0)