Make your React components more efficient by using Pure Components or React.memo()

Photo by Ferenc Almasi on Unsplash

React is an open-source javascript library for building user interfaces. It allows us to create reusable UI components. Before diving into how to make components efficient it will be useful to take a step back and understand how React works under the hood.