findDOMNode deprecated in StrictMode.
rajohan opened this issue · comments
Please select the type of issue you're reporting.
- Bug
- Feature Request
- Question
Problem Report
Using react-resizable in react v17.0.2 inside ReactStrictMode throws a warning because findDOMNode is deprecated in StrictMode.
Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of DraggableCore which is inside StrictMode. Instead, add a ref directly to the element you want to reference
System Info
Node Version: v15.8.0
Browser: Google Chrome Canary Version 91.0.4450.0
OS: Windows 10
Reproduction
https://codesandbox.io/s/react-resizable-playground-forked-d8n7k?file=/src/index.js:3792-3809
any updates on this ?
Same problem.
Pass a reference to the draggable component.
There is an example here: eoussama/eo-textdraw-editor@2c5c0d7