Chapter 1 · 7 examples

Intro to re-renders

The problem · State update, nested components, and re-renders · The big re-renders myth · Moving state down · The danger of custom hooks

  1. Example 1The re-render problem
  2. Example 2The big re-renders myth
  3. Example 3Moving state down
  4. Example 4State in a custom hook
  5. Example 5Hidden state in a hook
  6. Example 6Hooks calling hooks
  7. Example 7Isolating the hook