diasadvantages of using pure component code example
Example: purecomponent re rendering
// Note: In order to use PureComponent,
// you must ensure that you never mutate your state or props.
class MyClass extends React.PureComponent {
// ...
}