clauderic / clauderic/react-sortable-hoc
How to pass custom prop to the <SortableList /> component?
- Dominant language
- JavaScript
- Stars
- 10.9k
- Forks
- 959
- PR merge metrics
- No merged PRs in 30d
Description
#This is a question not a bug.
I'm looping over some elements, and inside each one there's a ``, now how do I pass a custom prop to the ``? the `id` of the item in the loop for example?
I'm using typescript and when I try to pass any prop it gives me an error.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by inspecting the TypeScript props for the component and the examples showing how it is used inside a loop. Determine whether passing an item id is supported or requires an API change; done means the supported approach or required prop behavior is clearly established and verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100