Closed
Description
React team just finally announced deprecating findDOMNode
.
Would be good to start providing better refs in each component to get rid from RootRef
.
Edit @eps1lon: Hijacking OP to document progress.
If we need the DOM node we still use findDOMNode
but we call it with refs. If the refs are attached to host components you won't get a strict mode warning. Only if they are attached to class components.
Strict-mode ready findDOMNode
- Slider
- ButtonBase
- ClickAwayListener
- MenuList
- Modal
- Popover
- Portal
[ ] RootRefcompat module- Slide
- SwipeableDrawer
- TextField