Skip to content

Instantly share code, notes, and snippets.

@grebaldi
Created February 20, 2017 15:11
Show Gist options
  • Save grebaldi/3c74700c3178561fc2bbb5fb82c93d3f to your computer and use it in GitHub Desktop.
Save grebaldi/3c74700c3178561fc2bbb5fb82c93d3f to your computer and use it in GitHub Desktop.
Debug reason for rendering
import debugReasonForRendering from '@neos-project/debug-reason-for-rendering';
import shallowCompare from 'react-addons-shallow-compare';
@debugReasonForRendering
shouldComponentUpdate(...args) {
return shallowCompare(this, ...args);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment