import * as React from 'react' ; import deepEqual from "react-fast-compare" ; /**
 * Like PureComponent but does a deep comparison.
 */ export abstract class FastComponent < P > extends React . Component < P > { public shouldComponentUpdate ( nextProps , nextState , nextContext ) { if ( ! deepEqual ( this . props , nextProps ) ) { return true ; } return false ; } }