Skip to content

Instantly share code, notes, and snippets.

@YajanaRao
Created August 5, 2021 18:17
Show Gist options
  • Save YajanaRao/cb1ed0c9c992b1424b7efda27fb35aa2 to your computer and use it in GitHub Desktop.
Save YajanaRao/cb1ed0c9c992b1424b7efda27fb35aa2 to your computer and use it in GitHub Desktop.
React Native Why Did You Render
import React from '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