Skip to content

Commit 3565b34

Browse files
committed
Merge pull request #124 from erfangc/master
Update README.md
2 parents 6b52285 + 189e7db commit 3565b34

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,20 @@ This bundle is also what is loaded when installing from npm. It expects external
2222
If you want a UMD version of the latest `master` revision, you can generate it yourself from master by cloning this
2323
repository and running `$ make`. This will create umd dist files in the `dist/` folder.
2424

25+
### Installing with jspm and systemjs ES6 module loader
26+
27+
```bash
28+
$ jspm install npm:react-draggable
29+
```
30+
31+
To access the `Draggable` component in your own code, you refer to the `.default` property of the imported reference.
32+
33+
```js
34+
import * as ReactDraggable from 'react-draggable';
35+
var Draggable = ReactDraggable.default;
36+
ReactDOM.render(<Draggable />, ...);
37+
```
38+
2539
## Draggable
2640

2741
A `<Draggable>` element wraps an existing element and extends it with new event handlers and styles.

0 commit comments

Comments
 (0)