ctrlplusb / react-sizeme

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

findDOMNode is deprecated and will be removed in the next major release. #231

Open MarkLyck opened 6 months ago

MarkLyck commented 6 months ago

After upgrading react to the latest version, started getting this error:

Warning: findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node

Given this repo hasn't been updated in years I don't have my hopes up. But maybe it helps some one else figure out what this error is.

This library needs to be updated to remove the use of findDOMNode