purecomponent re rendering 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 {
// ...
}
// Note: In order to use PureComponent,
// you must ensure that you never mutate your state or props.
class MyClass extends React.PureComponent {
// ...
}