During the reacttime of project development, the emergence of this error, findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition which is inside StrictMode. Instead, add a ref directly to the element you want to reference.as follows:
2. Problem analysis and solution:
Analysis of the problem: This error is described in StrictModethe not recommended findDOMNode, findDOMNodeis transferred to the StrictModeconverted instances within. Instead, add directly to the element to be referenced ref. This is actually opened up reacta strict mode, use the <React.StrictMode>tag.
To solve the problem: Turn off strict mode in the index.jsfile, remove <React.StrictMode>the label warning will disappear, as follows: