-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RootRef] Remove component #21974
[RootRef] Remove component #21974
Conversation
@material-ui/core: parsed: -0.47% 😍, gzip: -0.60% 😍 |
### RootRef | ||
|
||
- This component was removed. | ||
You can get a reference to the underlying DOM node of our components via `ref` prop. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
via the ref
prop?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean
You can get a reference to the underlying DOM node of our components via `ref` prop. | |
You can get a reference to the underlying DOM node of our components via the `ref` prop. |
?
Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
@@ -102,8 +102,6 @@ module.exports = { | |||
'react/no-array-index-key': 'off', | |||
'react/no-danger': 'error', | |||
'react/no-direct-mutation-state': 'error', | |||
// Required for backward compatibility. TODO v5, drop | |||
'react/no-find-dom-node': 'off', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, I have created a note to remove that rule from the material-ui-x repository.
Breaking change
This component was removed. You can get a reference to the underlying DOM node of our components via
ref
prop.The component relied on
ReactDOM.findDOMNode
which is deprecated inReact.StrictMode
.RootRef
is no longer needed for our components nor used internally. If people still need this component they can copy the old source.Follow-up: