shrub/pkg/interface/src/wdyr.js
2021-03-11 10:22:34 -08:00

8 lines
218 B
JavaScript

import React from 'react';
if (process.env.NODE_ENV === 'development') {
const whyDidYouRender = require('@welldone-software/why-did-you-render');
whyDidYouRender(React, {
trackAllPureComponents: true,
});
}