Skip to content

Warning: findDOMNode is deprecated in StrictMode #9

@Haaxor1689

Description

@Haaxor1689

After adding the React.StrictMode component I'm getting this warning.

index.js:1 Warning: 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. Learn more about using refs safely here: https://fb.me/react-strict-mode-find-node
    in div (created by Toast)
    in Transition (created by ToastTransition)
    in ToastTransition (created by Toast)
    in Toast (created by ToastContainer)
    in div (created by ToastPositioner)
    in ToastPositioner (created by ToastContainer)
    in div (created by ToastContainer)
    in /*my code...*/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions