- React Hooks API Reference
- Dan Abramov's canonical post A Complete Guide to
useEffect
- Thinking in React Hooks
- Use React Memo Wisely
- React Training's Hooks Workshop
- Alessia's hooks CodeSandbox demo
You may rely on useMemo as a performance optimization, not as a semantic guarantee. In the future, React may choose to “forget” some previously memoized values and recalculate them on next render, e.g. to free memory for offscreen components. Write your code so that it still works without useMemo — and then add it to optimize performance.
- useHooks: React Hook recipes