Users enjoy fast and responsive user interfaces (UI). An UI response delay of less than 100 milliseconds feels instant to the user. A delay between 100 and 300 milliseconds is already perceptible.

To improve user interface performance, React offers a higher-order component React.memo(). When React.memo() wraps a component, React memoizes the rendered output then skips unnecessary rendering.

This post describes the situations when React.memo() improves the performance, and, not less important, warns when its usage is useless.

Plus I’ll describe some useful memoization tips you should be aware of.

#react #component #memoization #react native

How to use React.memo() wisely
2.15 GEEK