React-transition-group: findDOMNode is depreciated. Use a ref instead.

Created on 17 May 2020  路  3Comments  路  Source: reactjs/react-transition-group

What is the current behavior?
When using React.StrictMode, a warning appears that indicates findDOMNode is depreciated.

What is the expected behavior?
The expected behavior is the error/warning doesn't exists. Facebook recommends adding a ref directly to the element you want to reference. Learn more about using refs safely here: https://fb.me/react-strict-mode-find-node

Could you provide a CodeSandbox demo reproducing the bug?
With Material-UI, place inside and include a component or any component that utilizes a transition (since Material-UI transitions are based on react-transition-group).

duplicate

Most helpful comment

Please link to the duplicate prior to closing issue

All 3 comments

image

Added screenshot of error

please search before opening new issues, thanks!

Please link to the duplicate prior to closing issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nickmccurdy picture nickmccurdy  路  4Comments

Kylian030903 picture Kylian030903  路  3Comments

Alfrex92 picture Alfrex92  路  4Comments

mosesoak picture mosesoak  路  5Comments

DeyLak picture DeyLak  路  4Comments