Wrapper component that detects parent (container) element resize and passes new dimensions down the tree. Based onelement-resize-detector. npm install --save react-container-dimensions It is especially useful when you create components with dimensions that change over time and you want to explicitely...
Dimensions([options.getHeight], [options.getWidth]) Wraps a react component and adds propertiescontainerHeightandcontainerWidth. Useful for responsive design. Properties update on window resize.Notethat the parent element must have either a height or a width, or nothing will be rendered ...