A simple React button to accept tips in ETH
npm install --save eth-tip-button
yarn add eth-tip-button
import React from 'react'
import { Button } from 'eth-tip-button'
const Example = () => {
return (
<Button
recipientAddress='<YOUR_ETH_ADDRESS>'
label='Send me ETH!'
collapsedLabel='Send'
onTransactionSent={(tx) => {
console.log('Transaction sent: ', tx)
}}
onTransactionFinished={(tx) => {
console.log('Transaction finished: ', tx)
}}
onError={(error) => {
console.log('Something went wrong: ', error)
}}
/>
)
}
MIT © frimoldi.eth