import * as React from 'react' ; import { Sizer , SizerProps } from '@devexpress/dx-react-core' ; export class UpdatableSizer extends React . PureComponent < SizerProps > { ref = React . createRef < Sizer > ( ) ; componentDidUpdate ( ) { this . ref . current ! . setupListeners ( ) ; } render ( ) { return < Sizer ref = { this . ref } { ... this . props } />; } }