Skip to content

Commit

Permalink
Update 02.md (epicweb-dev#132)
Browse files Browse the repository at this point in the history
added learn more about lazy state initialization blog link
  • Loading branch information
shivaprabhu committed Apr 12, 2021
1 parent 119a8c9 commit 1aa13c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/exercise/02.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ needed!
Make the `React.useState` call use lazy initialization to avoid a performance
bottleneck of reading into localStorage on every render.

> Learn more about [lazy state initialization](https://kentcdodds.com/blog/use-state-lazy-initialization-and-function-updates)
### 2. 💯 effect dependencies

[Production deploy](https://react-hooks.netlify.app/isolated/final/02.extra-2.js)
Expand Down

0 comments on commit 1aa13c3

Please sign in to comment.