React 19 Removed findDOMNode, but Popular Dependencies Still Call It
React 19 removed the findDOMNode function, so application code often contains no references to it. A developer testing react-transition-group 4.4.5 found four calls to findDOMNode inside the library's own code. The package declares a peer range that accepts React 19, so npm installs it without any warning. The calls are guarded by a nodeRef check, so passing that prop avoids the removed function. The author describes how their tool Since now inspects dependency code to flag such breaks, and notes early false positives from ElementType taught them to confirm a removal was not later reversed.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in