use hoist-non-react-statics
guillaumearm opened this issue · comments
Guillaume ARM commented
Hi,
Like the react-redux connect() enhancer, I think react-dimensions should hoist all non-react statics properties to ensure enhancers composability.
Would you like a pull request for this ?
Take a look at https://github.com/mridgway/hoist-non-react-statics
I've made a npm module for simplify this : https://www.npmjs.com/package/react-hoc
John Bito commented
Could you explain why this is relevant to this library? I don't see any statics being exposed.