How to use useMemo/memo to optimize performance

Jimmy
3 min readOct 22, 2020

If you’re learning or using React hooks, you probably have heard of useMemo/memo functions. These functions plays an important role in optimizing the performance of the React application by reducing unnecessary rerendering.

Excessive and constant rerendering of large amount of elements could lead to frame drop. In users’s perspective, they will feel the application to be not responsive and laggy, especially for those who has an underperforming PC.

--

--

Jimmy

Software Engineer @Microsoft, ex Apple, Amazon Dev