Skip to content
This repository has been archived by the owner on Mar 27, 2021. It is now read-only.

Commit

Permalink
Include link to UMD build on unpkg (#32)
Browse files Browse the repository at this point in the history
* For people not using NPM or Yarn in their projects, or if someone would
just like to play around with this package in a sandbox like CodePen or
JSFiddle, having access to a UMD build is helpful.
  • Loading branch information
indiesquidge authored and michelle committed Jul 12, 2017
1 parent 0fdeea9 commit df94fc8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Expand Up @@ -18,7 +18,7 @@ goes into more detail on the various customization options for Elements (e.g. st

### Installation

First, install `react-stripe-elements`.
#### First, install `react-stripe-elements`.

Using yarn:

Expand All @@ -28,7 +28,13 @@ Using npm:

npm install --save react-stripe-elements

Then, load Stripe.js in your application:
Using UMD build (exports a global `ReactStripeElements` object):

```html
<script src="https://unpkg.com/react-stripe-elements@latest/dist/react-stripe-elements.min.js"></script>
```

#### Then, load Stripe.js in your application:

```html
<script src="https://js.stripe.com/v3/"></script>
Expand Down

0 comments on commit df94fc8

Please sign in to comment.