souporserious/react-measure

React 16 support

jbyttow opened this issue · 4 comments

react-measure is not compatible with React 16 due to its dependency on React.createClass, this should be the only issue, but there may be others...

@jbyttow I used your suggestion here #86.

Anyone feel free to comment or update my PR.

@jbyttow react-measure does not use React.createClass. And all seems like work fine in my projects.

I believe the issue is specifically that if the Measure component's child is created using createReactClass from the "create-react-class" package then you get the parameter 1 is not of type "Element" error thrown here: https://github.com/que-etc/resize-observer-polyfill/blob/master/src/ResizeObserverSPI.js#L81.

nvm just found #76