完整警告
index.js:1 Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of DraftEditorLeaf which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node
此外一些基于class的生命周期函数似乎也报了警告,是否能够基于hook更新一下呢
componentWillMount has been renamed, and is not recommended for use.
完整警告 index.js:1 Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of DraftEditorLeaf which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node
此外一些基于class的生命周期函数似乎也报了警告,是否能够基于hook更新一下呢 componentWillMount has been renamed, and is not recommended for use.