Especially in a more dynamic context where there may be more than one <AvatarEditor /> in a component it'd be very nice to be able to handle an event, or pull the scaled image data out of the existing onImageChange event instead of messing with React refs.
Especially in a more dynamic context where there may be more than one
<AvatarEditor />
in a component it'd be very nice to be able to handle an event, or pull the scaled image data out of the existingonImageChange
event instead of messing with React refs.Maybe something like this?