react-scroll
react-scroll copied to clipboard
Warning: findDOMNode is deprecated in StrictMode
When wrapping my app with <React.StrictMode>...</React.StrictMode> following warning appears:
Warning: findDOMNode is deprecated in StrictMode
strict mode helps with:
Identifying components with unsafe lifecycles Warning about legacy string ref API usage Warning about deprecated findDOMNode usage Detecting unexpected side effects Detecting legacy context API
A solution could be by targeting the dom node by ref instead of findDOMNode...
Link to a sandbox: https://codesandbox.io/s/kind-moore-8p3zy