What is a PureComponent?
Why do we need it?
When and where should it be used?
PureComponent
A pure component in react is any functional/class component that return same output for same set of input params.
The major reason to use a PureComponent is performance optimization.
Clean code
Components with minimal data to render
The only difference is: PureComponent implements shouldComponentUpdate by default.
By shahnawaz19415