Chapter 1 · Example 4 · Intro to re-renders
State in a custom hook
Hiding the modal state inside a useModalDialog hook still re-renders the whole component on every change: a hook abstracts state away but doesn't isolate it.
Loading live editor…
Chapter 1 · Example 4 · Intro to re-renders
Hiding the modal state inside a useModalDialog hook still re-renders the whole component on every change: a hook abstracts state away but doesn't isolate it.