Skip to content

Commit

Permalink
adding import statement to the react example README
Browse files Browse the repository at this point in the history
  • Loading branch information
dmengelt committed Nov 22, 2024
1 parent 22d54dd commit b367e31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/button-react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ npm install @google-pay/button-react
## Example usage

```jsx
import GooglePayButton from '@google-pay/button-react';

<GooglePayButton
environment="TEST"
paymentRequest={{
Expand Down Expand Up @@ -47,7 +49,7 @@ npm install @google-pay/button-react
onLoadPaymentData={paymentRequest => {
console.log('load payment data', paymentRequest);
}}
/>
/>;
```

More React examples can be found in the
Expand Down

0 comments on commit b367e31

Please sign in to comment.