souporserious/react-measure

README update

Opened this issue · 0 comments

Small thing i noticed on the readme for inner ref it says it only accepts a function but in looking at the code i see the prop type is expecting a function or an object.
https://github.com/souporserious/react-measure/blob/master/src/with-content-rect.js#L17
and when we actually use it it's checking it's type again
https://github.com/souporserious/react-measure/blob/master/src/with-content-rect.js#L92