Even if/when we don’t use directly a context in our projects, most of the popular libraries like Formik, Redux, etc do; and if the used libraries don’t have a solution to bypass the unwanted re-renders issue, we should deal with it ourselves in our components.

I faced a big performance issue lastly due to those re-renders and to fix that, I had to use abusively React.memo, React.useCallback and React.useMemo in a lot of files. …

Motema Pembe

master degree in telecommunication engineering from Trento; more than 5 years of experience in frontend. Senior Frontend Developer at Testbirds GMBH in Munich

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store