https://github.com/teabyii/react-easy-sortable
Sortable List Component with React
https://github.com/teabyii/react-easy-sortable
component list react react-component reactjs sortable sortable-list
Last synced: about 2 months ago
JSON representation
Sortable List Component with React
- Host: GitHub
- URL: https://github.com/teabyii/react-easy-sortable
- Owner: teabyii
- License: mit
- Created: 2018-01-26T15:21:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-09T10:14:44.000Z (over 8 years ago)
- Last Synced: 2025-08-02T17:37:35.341Z (10 months ago)
- Topics: component, list, react, react-component, reactjs, sortable, sortable-list
- Language: JavaScript
- Homepage:
- Size: 112 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-easy-sortable
Sortable list component with react that should be easy to use :tada::tada::tada:
[](https://badge.fury.io/js/react-easy-sortable)
## Installation
Using npm:
```shell
npm install react-easy-sortable --save
```
## Usage
```js
import { SortableList, SortableItem } from 'react-easy-sortable'
export default class SortableComponent {
onSort (target, indexList) {
// ...
}
render () {
return (
Your Components
{ /* ... */ }
)
}
}
```
Using [Webpack](https://webpack.js.org/) or other module bunlder to pack it.