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
Смотрите видео React Drag and Drop Examples онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Andre Madarang 07 Июнь 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 87,272 раз и оно понравилось 777 людям.