jasonslyvia / jasonslyvia/react-anything-sortable

Doesn't work with mapped SortableItems

Open
#26 15 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
457
Forks
82
PR merge metrics
No merged PRs in 30d

Description

This works:

``` js
render() {
return

React


Angular


}
```

This doesnt:

``` js
function renderItem(n, index) {
return {n}
}

render() {
return
{items.map(renderItem)}

}
```

And by doesn't work, I mean nothing is rendered within sortable.

If I render the `{items.map(renderItem)}` outside of ``, it works...

Very odd.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the render examples in the issue and compare how Sortable receives direct DemoHOCItem children versus the children returned by items.map(renderItem). Check whether the mapped children render inside Sortable while confirming the same items render outside it; done means the mapped items appear within Sortable. The issue does not name files or tests, and its old, lengthy comment thread suggests it may not receive timely guidance.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.