findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Modal which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here #48
Im having a problem while using last React version + react-modal-resizable-draggable.
It works as expected but it throws an error in console.
Environment
React 18.0.0
Vite 2.7.2
React-modal-resizable-draggable
Note: It can be fixed temporarily by updating to React 18 in the package [React 18 runs StrictMode just in development environment] but it must be fixed by changing findDOMNode to Ref.
Hi, first of all, thanks for this package.
Im having a problem while using last React version + react-modal-resizable-draggable.
It works as expected but it throws an error in console.
Environment React 18.0.0 Vite 2.7.2 React-modal-resizable-draggable
Note: It can be fixed temporarily by updating to React 18 in the package [React 18 runs StrictMode just in development environment] but it must be fixed by changing findDOMNode to Ref.