react-dimensions v2.0.0-alpha2 Release Notes

Release Date: 2016-10-24 // over 7 years ago
  • ➕ Added

    • ➕ Added peer dependency for React 16

Previous changes from v2.0.0-alpha1

  • ➕ 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.