findDOMNode used
Part of Code Quality & Syntax, which counts for 20% of the overall score. When this check fires it deducts 8 points from that category, once per scan, no matter how many places it turns up.
What it detects
ReactDOM.findDOMNode is deprecated and disallowed in StrictMode. It breaks encapsulation and does not work with fragments or function components; use a ref callback instead.
Why it matters
ReactDOM.findDOMNode is deprecated and throws in StrictMode. It breaks component encapsulation by reaching into the rendered DOM, and it does not work with fragments or function components, so it is a portability and upgrade hazard.
How to fix it
Attach a ref to the specific element you need and read ref.current instead of calling findDOMNode. If you are measuring or focusing a child, forward a ref to it. Remove the findDOMNode import once no calls remain.
The paid report includes a ready-to-paste prompt for your AI coding agent for every check it finds, pointed at the exact findings from your scan. See pricing
Does your repo trip this check?
Paste a GitHub URL or drop a project folder. Scans run in your browser and take seconds.
Scan your repo