Skip to content

Commit

Permalink
Update hooks-reference.md (#2364)
Browse files Browse the repository at this point in the history
typo: "effects run [..], but you can [..] fire it" => "effects run [..], but you can [..] fire them"
  • Loading branch information
ElRatonDeFuego authored and alexkrolick committed Oct 6, 2019
1 parent 22574f8 commit 5c371e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/docs/hooks-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Mutations, subscriptions, timers, logging, and other side effects are not allowe

Instead, use `useEffect`. The function passed to `useEffect` will run after the render is committed to the screen. Think of effects as an escape hatch from React's purely functional world into the imperative world.

By default, effects run after every completed render, but you can choose to fire it [only when certain values have changed](#conditionally-firing-an-effect).
By default, effects run after every completed render, but you can choose to fire them [only when certain values have changed](#conditionally-firing-an-effect).

#### Cleaning up an effect {#cleaning-up-an-effect}

Expand Down

0 comments on commit 5c371e5

Please sign in to comment.