Skip to content

crodas/Sorting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple class to sort elements

Resources

License

Stars

Watchers

Forks

Packages

No packages published