react-easy-sortable

0.1.1 • Public • Published

react-easy-sortable

Sortable list component with react that should be easy to use 🎉🎉🎉 npm version

Installation

Using npm:

npm install react-easy-sortable --save

Usage

import { SortableList, SortableItem } from 'react-easy-sortable'

export default class SortableComponent {
  onSort (target, indexList) {
    // ...
  }

  render () {
    return (
      <SortableList onSort={this.onSort.bind(this)}>
        <SortableItem>
          Your Components
        </SortableItem>
        { /* ... */ }
      </SortableList>
    )
  }
}

Using Webpack or other module bunlder to pack it.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    2
  • 0.1.0
    0

Package Sidebar

Install

npm i react-easy-sortable

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

261 kB

Total Files

9

Last publish

Collaborators

  • teabyii