Use React.memo to avoid unnecessary re-renders in React functional components

Share this video with your friends

Send Tweet

Class components can bail out from rendering when their input props are the same using PureComponent or shouldComponentUpdate. Since React 16.6 you can do the same with function components by wrapping them in React.memo.