mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-07-01 21:01:20 +08:00
fix(curriculum): typo in What Are Effects in React (#64464)
This commit is contained in:
parent
075375700f
commit
fbef211027
@ -79,7 +79,7 @@ useEffect(() => {
|
||||
}, []);
|
||||
```
|
||||
|
||||
If you pass in the `count` state as a dependency, the effect runs when the component first render, and when `count` changes:
|
||||
If you pass in the `count` state as a dependency, the effect runs when the component first renders, and when `count` changes:
|
||||
|
||||
```js
|
||||
useEffect(() => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user