Closed darkowic closed 5 years ago
Seems doable! Thanks for the suggestion. Can you create a pull request for this ? @Sunshine168 this is interesting, what do you think ?
Absolutely, ref is useful, and recommend to use forwardRef Api.
~~BTW forwardRef Api is available in React 16.3~ You can use create-react-ref for this feat
@darkowic Did you like to create a PR about this feat ~ or I will work on this .
I will handle this in few days, ok?
sob., 15 wrz 2018, 06:52 użytkownik ZiYingMai notifications@github.com napisał:
@darkowic https://github.com/darkowic Did you like to create a PR about this feat ~ or I will work on this .
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nitin42/react-imgpro/issues/20#issuecomment-421530871, or mute the thread https://github.com/notifications/unsubscribe-auth/AK-jNe04OPSXyF0UGVp9WUkkK2iO7N11ks5ubIeJgaJpZM4Wg8gj .
@LukasDrgon Grateful~ I just make sure you take it
Hi any news about this ~
Done #29
Hello!
I need to access reference of the rendered img component. It is impossible right now.
We have 2 options:
innerRef
/imgRef
/etc which will be passed to img componentforwardRef
API to passref
to the rendered img componentWhat do you think? Since this component is rendering
img
component directly, I think the second solution will be more appropriate.