maslianok / react-resize-detector

A Cross-Browser, Event-based, Element Resize Detection for React
http://maslianok.github.io/react-resize-detector/
MIT License
1.25k stars 91 forks source link

Add looser peer dep requirements for react and react-dom? #75

Closed majapw closed 5 years ago

majapw commented 5 years ago

QQ: Would it be possible to loosen the react and react-dom peer dep restrictions to ^16.0.0 or are there explicit dependencies on react 16.8+ features in this library?

maslianok commented 5 years ago

yes, I don't see any reason why it can't be ^16.0.0.

We use child arrays, but this feature was added in ^16 https://css-tricks.com/render-children-in-react-using-fragment-or-array-components/#article-header-id-4

Let me update dependencies

maslianok commented 5 years ago

Fixed in this commit https://github.com/maslianok/react-resize-detector/commit/8555cc46c03a25ca5ffb207aed7f2cc0d1fe019b

Released in v4.2.0

Thanks for the suggestion, @majapw 👍

majapw commented 5 years ago

Thank you @maslianok! :)