Skip to content

Latest commit

 

History

History
76 lines (55 loc) · 4.67 KB

react-hooks.md

File metadata and controls

76 lines (55 loc) · 4.67 KB

React Hooks

Official Resources

  • React Docs: Hooks
    https://reactjs.org/docs/hooks-intro.html
    The main resource for learning hooks. Includes an intro with motivation, tutorials on useState and useEffect, discussion of custom hooks, the full hooks API reference, and an in-depth FAQ. Read the hooks docs first before looking at anything else!

  • ReactConf 2018: React Today and Tomorrow
    https://www.youtube.com/watch?v=dpw9EHDh2bM
    Sophie Alpert and Dan Abramov's talk unveiling hooks, live at ReactConf 2018.

  • A Complete Guide to useEffect
    https://overreacted.io/a-complete-guide-to-useeffect/
    An incredibly detailed deep dive by Dan Abramov into the mindset of using hooks correctly. Covers the relationship between class lifecycles and hooks, how to work with the dependencies array, dealing with closures and stale data, and much much more. This is required reading for anyone using hooks.

  • Making Sense of React Hooks
    https://dev.to/dan_abramov/making-sense-of-react-hooks-2eib
    Dan Abramov provides a lot of additional context around the hooks proposal, including potential benefits like co-locating related logic, examples of how to use hooks, whether they are "magic", and more. Also a must-read.

Hooks Tutorials

Understanding Hooks Concepts