Luehang / react-paypal-button-v2

An easy and simple to use React button component to implement PayPal Checkout with Smart Payment Buttons V2 (Version 2).
https://luehangs.site/lue_hang/projects/react-paypal-button-v2
MIT License
274 stars 81 forks source link

[BUG] findDOMNode is deprecated in StrictMode #121

Open kamzata opened 2 years ago

kamzata commented 2 years ago

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):

JoanMilano commented 8 months ago

facing the same issue, havnt been able to solve it via tweaking versions, cant find the findDOMNode component. Were you able to find a solution?

vignyl commented 1 week ago

i have the same issue. but no solution