Open
Description
Describe the bug
The warning Warning: Cannot update a component from inside the function body of a different component.
appears with the latest React version 16.13 when using the example provided in the readme file.
To Reproduce
Steps to reproduce the behavior: Create a new component using the example code with React v16.13.0
Expected behavior
No warning :)
Information
This happens because the setList
method is passed to the child component which results now in a warning.
More information in the react release notes: https://reactjs.org/blog/2020/02/26/react-v16.13.0.html
Versions
react-sortable = ^2.0.11
react = ^16.13.0