标签: react-redux-notify

警告:在 StrictMode 中不推荐使用 findDOMNode,react-redux-notify

我在使用react-redux-notify时收到此警告

index.js:1 Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of CSSTransitionGroupChild which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: ---/react-strict-mode-find-node
    in div (created by Notification)
    in Notification (created by Notify)
    in CSSTransitionGroupChild (created by TransitionGroup)
    in div (created by TransitionGroup)
    in TransitionGroup (created by CSSTransitionGroup)
    in CSSTransitionGroup (created by Notify)
    in div (created by Notify)
    in Notify (created by …
Run Code Online (Sandbox Code Playgroud)

strict-mode reactjs deprecation-warning react-redux react-redux-notify

4
推荐指数
2
解决办法
1万
查看次数