What are Pure Components in reactjs


React.PureComponent is exactly the same as React.Component the only difference is that it handles shouldComponentUpdate() for you.

It looks for props and state changes, PureComponent will do the shallow comparison on props and state.

Components will not look for these things thus component will rerender by default.