odysseyscience / react-s3-uploader

React component that renders an <input type="file"/> and automatically uploads to an S3 bucket
MIT License
829 stars 240 forks source link

findDOMNode is deprecated in StrictMode #239

Open robertgoacher opened 3 years ago

robertgoacher commented 3 years ago

When I select a file I'm receiving this error message in the Console when run in React StrictMode:

Warning: findDOMNode is deprecated in StrictMode

See also: https://reactjs.org/docs/strict-mode.html#warning-about-deprecated-finddomnode-usage

zacjones93 commented 6 months ago

For those running into this issue, I solved this by updating react-s3-uploader to use a ref instead

https://github.com/skillrecordings/egghead-next/pull/1449/files