Skip to content

Instantly share code, notes, and snippets.

@simple17
Created July 29, 2020 11:22
Show Gist options
  • Save simple17/6efaf8e3f70f29eac9c0f00bd380a24f to your computer and use it in GitHub Desktop.
Save simple17/6efaf8e3f70f29eac9c0f00bd380a24f to your computer and use it in GitHub Desktop.
[check why it was rendered] #react
// if (process.env.NODE_ENV === 'development') {
// const whyDidYouRender = require('@welldone-software/why-did-you-render');
// whyDidYouRender(React, {
// trackAllPureComponents: true,
// });
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment