-
Notifications
You must be signed in to change notification settings - Fork 57
Closed
Labels
Description
Refactor:
- No mutation (as in Input elements lose their value while being dragged #63)
- Remove
setStatewhere component updates are not required - Support immutablejs
- No new list in callback? Provide only previous and next indices?
- Allow defining
listComponentanditemComponent(default toulandli) - Allow defining
listPropsanditemPropswhich will be applied to these components - Allow
itemKeyto be a function (for getting keys from immutable objects) - Clone item components for rendering, or use functional components?
- Multi-select components to reorder
/* Work in progress */
const Item = (props) => (
<div {...props}>
</div>
);
class App extends Component {
render() {
return (
<Reorder
listComponent="div"
itemComponent={Item}
/>
);
}
}Reactions are currently unavailable