In this video, we take a look at how to implement drag and drop in React. We'll be making use of the popular react-dnd library to accomplish this. We'll build out a trash can implementation of dragging and dropping items into a target, and then we'll take a look at dragging and dropping a sortable list.
16:28 - The deleteItem method is mutating state directly. You shouldn't do this. Use filter for a more functional approach. See this commit: https://github.com/drehimself/react-d...
GitHub Repo: https://github.com/drehimself/react-d...
Other drag and drop libraries
https://github.com/atlassian/react-be...
https://github.com/clauderic/react-so...
LINKS
My courses: https://codewithdre.com
Sign up for my newsletter: http://andremadarang.com/newsletter
My website: http://andremadarang.com
Twitter: / drehimself
GitHub: http://github.com/drehimself
CodePen: http://codepen.io/drehimself
Watch video React Drag and Drop Examples online without registration, duration hours minute second in high quality. This video was added by user Andre Madarang 07 June 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 87,272 once and liked it 777 people.