Add the why-did-you-render Package to Catch Unnecessary Updates in React

InstructorTyler Clark

Share this video with your friends

Send Tweet

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.

Mohmmad Pourhossein
~ 3 years ago

this content of this course is duplication of the one called "9 - Optimize Function Components with React.memo"