wwan5803 / react-modal-resizable-draggable

53 stars 22 forks source link

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

Open davidmoreno92 opened 2 years ago

davidmoreno92 commented 2 years ago

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. image

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.

DanielOjeda25 commented 8 months ago

Hi, I'm using the this library , and I have the same issue, I'm using vite as project's creator, so can you teach me how you fix that problem?