vutoan266 / react-images-uploading

The simple images uploader applied Render Props pattern that allows you to fully control UI component and behaviors.
https://github.com/vutoan266/react-images-uploading
MIT License
320 stars 52 forks source link

Errors on UseRef$1 and Invariant Violation #5

Closed veih14 closed 4 years ago

veih14 commented 4 years ago

Hi there, first of all, thank you for building out this library as it will be a great help!

I'm basically copying your Example component and trying to see if it works on my app. I'm getting these errors and the component does not show up at all. Just wondering if I don't have the right requirements to use this.

I'm on React version 15.5.4. Not sure if that matters. What am I doing wrong?

Screen Shot 2020-05-06 at 11 08 39 PM

vutoan266 commented 4 years ago

hi @veinhuang , your react version is out of date, not include hook API used in the component. You should update to v16.8 or upper.

veih14 commented 4 years ago

oh, I didn't know this required a certain React version.

Unfortunately, the app that my company app is on is a pretty big one and has been working on it for a few years so upgrading is not so easy (lots of breaking changes if React is upgraded). Would you happen to know another package that has similar functionality like yours?

vutoan266 commented 4 years ago

Sorry for late reply. I have not seen any image uploading component function likely so I made one. You can try with some other popular components on Npm. Good luck.