Why You Rendering, React?
Published in
3 min readSep 19, 2019
React gives developers the freedom to architect their apps in any way they see fit. Do you use class components, higher-order components, render props components, hooks, or a mixture of these patterns? Then there are the state management decisions to make. Your app’s component + state architecture can get quite unwieldy pretty soon.
However you put your app together, it’s always a good idea to ensure your components and state changes are triggering re-rendering as expected. That’s especially important if you have costly components to re-render.