Google Pay Launches an Official React Component and a Custom Element
https://developers.googleblog.comGoogle has just announced an official Google Pay Button for React – this component available as an open source project on GitHub and also on pm. They have also announced a Google Pay button Custom Element that should work on most modern browsers, this is also hosted on GitHub and published to npm.
There’s no change to the existing Google Pay JavaScript library, and if you prefer, you can continue to use this directly instead of the React component or custom element.