Course lesson
Add the why-did-you-render Package to Catch Unnecessary Updates in React
Sometimes it can be difficult to understand why your components are rerendering. The why-did-you-update package will show what props and/or state updated that cause the re-render. Let’s install this package and figure out why our component is unnecessarily...
- Duration
- 5 min
- Access
- Included
- Transcript
- Retained from source evidence
Sometimes it can be difficult to understand why your components are rerendering. The why-did-you-update package will show what props and/or state updated that cause the re-render. Let’s install this package and figure out why our component is unnecessarily updating.