Skip to content

Commit f671557

Browse files
authored
Merge pull request #43 from andela-aabdulwahab/update-readme-with-install-instructions
Update README with installation instructions
2 parents 33a2a01 + de67582 commit f671557

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,21 @@ problems with handle placement and visibility.
1515
You can pass options directly to the underlying `Draggable` instance by using the prop `draggableOpts`.
1616
See the [demo](/test/TestLayout.jsx) for more on this.
1717

18+
### Installation
19+
20+
Using [npm](https://www.npmjs.com/):
21+
22+
$ npm install --save react-resizable
1823

1924
### Usage
2025

2126
```javascript
2227
var Resizable = require('react-resizable').Resizable; // or,
2328
var ResizableBox = require('react-resizable').ResizableBox;
2429

30+
// Using ES6 transpiler
31+
import { Resizable, ResizableBox } from 'react-resizable';
32+
2533
...
2634
render: function() {
2735
return (

0 commit comments

Comments
 (0)