Created
February 20, 2017 15:11
-
-
Save grebaldi/3c74700c3178561fc2bbb5fb82c93d3f to your computer and use it in GitHub Desktop.
Debug reason for rendering
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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