react-window-size icon indicating copy to clipboard operation
react-window-size copied to clipboard

React 16 Updates

Open embrenneke opened this issue 4 years ago • 0 comments

Upgraded peer dependency to react 16.3, and use a forwardRef to set a ref to the wrapped component, rather than a regular ref. This helps it work with function components.

Bump Enzyme to compatible version that works with React 16. Fix failing test. Bump package version to 2.0.0 since this a breaking change from how refs previously worked.

embrenneke avatar Sep 18 '19 04:09 embrenneke