ctrlplusb / react-sizeme

Make your React Components aware of their width and height!
MIT License
1.95k stars 94 forks source link

HOC usage is not forwarding refs #184

Open ecklf opened 4 years ago

ecklf commented 4 years ago

I know it is bad practice to use something like useImperativeHandle. Just did some experimenting

Example: https://codesandbox.io/s/nervous-meadow-5zeo8

Related: https://reactjs.org/docs/forwarding-refs.html#forwarding-refs-in-higher-order-components

ryandagg commented 3 years ago

I am unable to use this package until this issue is resolved.