Our React Web Monetization library is on NPM
By Ciaran Edwards
We've released the code from "Web Monetization: Part 2 - Checking it's active" as a package on npm. The package currently gives you two things:
WebMonetizationProvider for setting up the event listeners needed for tracking web monetization events
useWebMonetization hook for reading the web monetization state in your components.
If you want to check it out, you can find the package on npm and the source code on GitHub.