Skip to content

[BUG] findDOMNode is deprecated in StrictMode #121

@kamzata

Description

@kamzata

Describe the bug

Error message on console loading Paypal button inside a MUI v5 modal window:

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of n 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

To Reproduce

No errors in console

Screenshots

image

Desktop (please complete the following information):

  • OS: [e.g. iOS] MacOS 12.3
  • Browser: [e.g. chrome, safari] Chrome 99.0.4844.74
  • React Version: [e.g. 22] 17.0.2

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