Skip to content

Commit 773bd59

Browse files
authored
Merge pull request #3406 from adlantz/part2e-typo-fix
part2e - typo fix
2 parents 14eea82 + d87fdfc commit 773bd59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/2/en/part2e.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ The other thing that we still need to have a closer look is the second parameter
443443
444444
The second parameter of <em>useEffect</em> is used to [specify how often the effect is run](https://react.dev/reference/react/useEffect#parameters). The principle is that the effect is always executed after the first render of the component <i>and</i> when the value of the second parameter changes.
445445
446-
If the second parameter is an empty array <em>[]</em>, it's content never changes and the effect is only run after the first render of the component. This is exactly what we want when we are initializing the app state from the server.
446+
If the second parameter is an empty array <em>[]</em>, its content never changes and the effect is only run after the first render of the component. This is exactly what we want when we are initializing the app state from the server.
447447
448448
However, there are situations where we want to perform the effect at other times, e.g. when the state of the component changes in a particular way.
449449

0 commit comments

Comments
 (0)