-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Closed
Labels
priority: importantThis change can make a difference.This change can make a difference.
Milestone
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
eps1lon, oliviertassinari, Sawtaytoes, HaNdTriX and kmjennison
Metadata
Metadata
Assignees
Labels
priority: importantThis change can make a difference.This change can make a difference.