Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions crates/oxc_linter/src/rules/react/no_find_dom_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ pub struct NoFindDomNode;
declare_oxc_lint!(
/// ### What it does
///
/// This rule disallows the use of `findDOMNode`.
/// This rule disallows the use of `findDOMNode`, which was deprecated in 2018 and removed in React 19.
///
/// ### Why is this bad?
///
/// `findDOMNode` is an escape hatch used to access the underlying DOM node.
/// In most cases, use of this escape hatch is discouraged because it pierces the component abstraction.
/// [It has been deprecated in `StrictMode`.](https://legacy.reactjs.org/docs/strict-mode.html#warning-about-deprecated-finddomnode-usage)
/// It has been deprecated for years, and was
/// [removed from React entirely in React 19](https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-reactdom-finddomnode).
///
/// It should not be used.
///
/// ### Examples
///
Expand Down
Loading