Is pretty much as follow là gì
Drag and Drop is a common interaction technique added to allow people to intuitively move things around on a page. This could be reordering a list or even putting together a puzzle. Show
How can we add that interaction when building a React app with React Beautiful DnD?
What is Drag and Drop?Drag and drop is pretty much what it sounds like — it’s an interaction allowing someone to click and drag an item, then drop it somewhere else, often having a side effect within the app. Moving items on a boardThis effect is pretty common in applications like to-do lists or project management dashboard, where you need to prioritize and create an order for how things should be done. While drag and drop can have some advanced use cases, we’ll stick to basic list functionality for our walkthrough. ADVERTISEMENT What is React Beautiful DnD?React Beautiful DnD is an accessible drag and drop library from Atlassian. If you don’t know of Atlassian, they’re the team behind Jira. If you’re not familiar with Jira, it’s probably the biggest Agile tool on the internet right now. The team’s goals were to provide drag and drop capabilities with accessibility in mind, in addition to keeping it night and performant with a powerful API. What are we going to build?We’re going to start off with a simple list and add the ability to drag and drop. In this walkthrough, we won’t spend time building the list itself. The list that we’ll be using uses a standard unordered list (
|