A workshop which dives deep into most built-in React hooks
GPL-3.0 License
A workshop which dives deep into all React built-in hooks
<Counter />
scenarios.useEffect
and useState
interplay
Topics covered:
useLayoutEffect
vs. useEffect
useState
setter functionuseEffect
/useLayoutEffect
dependency array with refs
React.memo
HOC performance improvement
Topics covered:
useCallback
hookusePrevious
hookuseState
error: setState
on unmounted componentuseState
callsserver
implementation. They however exemplify their functionality better then the hook definitions in other parts of the React codebase because they are more abstract there.This course is a collection of code examples which were inspired by other blog articles and code snippets written by wonderful developers. Sometimes I just adapted them from others. I learned a lot from them while working through their articles and examples. Thanks so much! The sections sometimes contain links to other helpful articles.
I have to point out one article in particular here: Many examples in this course are based on Dan Abramov's blog article A Complete Guide to useEffect. Thanks for this very enlightning read!
And a huge thanks to all my students with whom I worked through the examples. Your questions and comments are continuously improving this course. Thanks!