- Which versions of React include Hooks?
- Do I need to rewrite all my class components?
- What can I do with Hooks that I couldn’t with classes?
- How much of my React knowledge stays relevant?
- Should I use Hooks, classes, or a mix of both?
- Do Hooks cover all use cases for classes?
- Do Hooks replace render props and higher-order components?
- What do Hooks mean for popular APIs like Redux
connect()
and React Router? - Do Hooks work with static typing?
- How to test components that use Hooks?
- What exactly do the lint rules enforce?
- How do lifecycle methods correspond to Hooks?
- How can I do data fetching with Hooks?
- Is there something like instance variables?
- Should I use one or many state variables?
- Can I run an effect only on updates?
- How to get the previous props or state?
- Why am I seeing stale props or state inside my function?
- How do I implement
getDerivedStateFromProps
? - Is there something like
forceUpdate
? - Can I make a ref to a function component?
- How can I measure a DOM node?
- What does
const [thing, setThing] = useState()
mean?
- Can I skip an effect on updates?
- Is it safe to omit functions from the list of dependencies?
- What can I do if my effect dependencies change too often?
- How do I implement
shouldComponentUpdate
? - How to memoize calculations?
- How to create expensive objects lazily?
- Are Hooks slow because of creating functions in render?
- How to avoid passing callbacks down?
- How to read an often-changing value from
useCallback
?