react-dimensions v2.0.0-alpha1 Release Notes

Release Date: 2016-08-12 // over 7 years ago
  • โž• Added

    • โž• Added a CHANGELOG.md
    • ๐Ÿ’ฅ Breaking: Measure the parent node rather than the wrapper. You will need to wrap this component in a <div> and style that.
    • ๐Ÿ’ฅ Breaking: Removed containerStyle and containerClass options - the wrapper <div> is no longer used for calculating dimensions.
    • ๐Ÿ’ฅ Breaking: Removed options getWidth and getHeight, replaced with getDimensions. This will allow replacing the current dimensions calculation with a single call to getBoundingClientRect(), rather than two. Currently we are still using element.clientWidth and element.clientHeight for dimension calculation.