mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-24 23:49:06 +08:00
fix(curriculum): typo in What Are Effects in React (#64464)
This commit is contained in:
+1
-1
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user