clauderic / clauderic/react-sortable-hoc
Make it easier to use
Open
- Dominant language
- JavaScript
- Stars
- 10.9k
- Forks
- 959
- PR merge metrics
- No merged PRs in 30d
Description
You can use the lib much easier if you would include this:
```typescript
import {SortableContainer, SortableElement, SortableHandle} from "react-sortable-hoc";
const component = ({children}: {children: JSX.Element}) => children;
export const SortableItem = SortableElement(component);
export const SortableList = SortableContainer(component);
export const SortHandle = SortableHandle(component);
```
Usage:
```tsx
- {c}
{this.state.elementForList.map((c, i) =>
)}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.