paypal-js
paypal-js copied to clipboard
[Bug] Cannot read properties of undefined (reading 'render')
🐞 Describe the Bug
Cannot read properties of undefined (reading 'render') in React js
🔬 Minimal Reproduction
Here is the code sandbox : https://codesandbox.io/s/react-paypal-with-paypal-paypal-js-package-z2xlnr?file=/src/App.js
😕 Actual Behavior
When I place clientId to get paypal up and running, I got an error message on console
🤔 Expected Behavior
It should be able to recognise render and behave as expected
🌍 Environment
- Node.js/npm: - 16.17.0 LTS
- OS: - Windows 10
- Browser: - Chrome
➕ Additional Context
I've got the same issue with @paypal/react-paypal-js npm package where React skipped hostedFields for card fields
here is screenshot of the error:
