Sortable component for ReactJS. Demo here.
React.render(
<ReactReorderable>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
</ReactReorderable>,
document.getElementById('container')
);
handle
- a selector, which provides the handle elementmode
-grid
orlist
,list
will work in the general case butgrid
is eventually smarter for grid layout
onDragStart
onDrag
onDrop
onChange
MIT