clauderic / clauderic/react-sortable-hoc
Uncaught TypeError: cannot call a class as a function
- Dominant language
- JavaScript
- Stars
- 10.9k
- Forks
- 959
- PR merge metrics
- No merged PRs in 30d
Description
When I change code, and the app re-renders, it always crashes with this error message:
`Uncaught TypeError: cannot call a class as a function`
I'm not sure why it's happening.
Basically, this is what I have...
const SortableCont = SortableContainer(({ children }: any) =>
const SortableItem = SortableElement((props: any) => );
return (
....
{actionButtonList.map((value: any, index: number) =>
)}
)}

Contributor guide
No contributing guide indexed for this repository
Research direction
The report includes only an application snippet using SortableContainer, SortableElement, and React rendering; no repository file, test, or entry point is named. Start by reproducing the rerender crash with the shown usage and inspect the relevant React integration. Done would require a confirmed cause and a repository-scoped resolution, but the issue does not define one.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100