@moneybutton/react-money-button
v0.38.8
Published
Money Button React Component
Downloads
25
Readme
React Money Button is a React library that lets you integrate Money Button’s payment system into your app with only a few lines of code.
Installation
React Money Button is available on the npm registry. You can install it both via yarn and npm.
yarn add @moneybutton/react-money-button
# or
npm install @moneybutton/react-money-button
Getting started
Using React Money Button is as simple as adding this component to your app:
import React, { Component } from 'react'
import MoneyButton from '@moneybutton/react-money-button'
class MyApp extends Component {
render() {
return <MoneyButton
to="<your-bitcoin-address-here>"
amount="1"
currency="USD"
/>
}
}
To learn more about the library, check out the docs.
License
React Money Button is MIT licensed.