React PureComponent shouldComponentUpdate logger (aka: ShouldComponentUpdate Diff and Debug, scudd)
npm install scuddA very small lib for quick React PureComponent logging.
During debug replace:
``js`
class MyComponent extends React.PureComponent {
render() { ... }
}
by
`js``
import ScuddComponent from 'scudd'
class MyComponent extends ScuddComponent {
render() { ... }
}
and get a nice table of render triggers in your console.