react-sorting

0.3.1 • Public • Published

Sorting

Pretty simple class to sort elements.

import Sorting from 'react-sorting'
import React from 'react'
import ReactDOM from 'react-dom'

ReactDOM.render(<ul>
  <Sorting>
    <li>one</li>
    <li>two</li>
    <li>three</li>
  </Sorting>
</ul>, document.getElementById("main"))

Why?

  1. Doing React should be easy and fun :-)
  2. Drag and drop is easy with jQuery therefore it should be easy using React.
  3. react-dnd is super cool but there is a lot of boilterplate to use it, but it does more things

Future

  1. Mobile drag and sort
  2. More documentation
  3. Tests

/react-sorting/

    Package Sidebar

    Install

    npm i react-sorting

    Weekly Downloads

    0

    Version

    0.3.1

    License

    ISC

    Last publish

    Collaborators

    • crodas