why did you render 1

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,
  });
}

Here is what the above code is Doing:
1. If the environment is development, import whyDidYouRender.
2. Call whyDidYouRender with React and some options.
3. The options we’re passing in are:
– trackAllPureComponents: true
– This will track all pure components.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary renders.
– This is useful for tracking down unnecessary

Similar Posts