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.
this content of this course is duplication of the one called "9 - Optimize Function Components with React.memo"