react-sortable-item
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "react-sortable-item", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Reorder elements in a list. Uses the native HTML5 Drag and Drop API.", | ||
@@ -5,0 +5,0 @@ "main": "index.es5.js", |
@@ -5,5 +5,17 @@ # react-sortable-item | ||
See [example](http://aaronshaf.github.io/react-sortable-item/). | ||
This library is quite different from others in that treats the reindexing strategy as an implementation detail. | ||
## Install | ||
```base | ||
npm install react-sortable-item | ||
``` | ||
## Example | ||
```javascript | ||
import SortableItem from 'react-sortable-item' | ||
var ExampleSortableList = React.createClass({ | ||
@@ -10,0 +22,0 @@ handleDrop: function(dropPath, position, event) {}, |
5298
54