Skip to content

Commit 4806f35

Browse files
committed
Add additional installation methods to readme
1 parent f380dab commit 4806f35

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ $ npm install --save react-interactive
148148
```
149149
```javascript
150150
import Interactive from 'react-interactive';
151+
// OR
152+
var Interactive = require('react-interactive');
153+
```
154+
Or use the UMD build that's available on unpkg (the component will be available to use as `Interactive`):
155+
```html
156+
<script src="https://unpkg.com/react-interactive/dist/ReactInteractive.min.js"></script>
151157
```
152158

153159
## API

0 commit comments

Comments
 (0)