Master the art of drag and drop in React
Modern web applications offer a useful feature that allows users to drag and drop elements around the page.
This creates a more intuitive and user-friendly experience, and it's become increasingly popular in recent years.
In fact, drag and drop functionality has become so common that it's hard to imagine a modern web application without it.
From social media platforms to e-commerce websites, drag and drop has become a staple of the user experience.
The reason for its popularity is simple: drag and drop is a powerful tool that can simplify complex tasks and make the user's life easier.
You can find drag and drop functionality in a variety of real-world applications.
For example, when using a file manager on your computer, you can drag files from one folder to another or onto an external drive.
In video editing software, you can drag and drop clips onto a timeline to create a sequence.
And in graphic design applications, you can drag and drop images and text boxes to create layouts.
On the web, drag and drop functionality can be used for a variety of purposes, such as moving items around in a to-do list or task manager,
rearranging playlists or albums in music streaming services, or sorting products into a shopping cart or wishlist on e-commerce websites.
Implementing drag and drop functionality may require some additional coding compared to simple form inputs, but the benefits are well worth it.
If you're a React developer, you'll be happy to know that this series can help you become a master of dragging and dropping within your React app.
You'll get real-world examples and gradually work your way up to more advanced techniques.
And the best part? We won't be using any external libraries, so you can see firsthand how it all works under the hood.
Get ready to elevate your React app with drag and drop functionality. Your users will love it!
01
Make a given element draggable
27 Oct, 2023
02
Make an element draggable on touchscreen devices
28 Oct, 2023
03
Create a custom draggable hook
29 Oct, 2023
04
Create a range slider
30 Oct, 2023
05
Create an RGB to HEX color converter
08 Nov, 2023
06
Create resizable split views
31 Oct, 2023
07
Create a drawer
01 Nov, 2023
08
Create an image comparison slider
02 Nov, 2023
09
Scroll by dragging
03 Nov, 2023
10
Build a custom scrollbar
04 Nov, 2023
11
Make a given element resizable
05 Nov, 2023
12
Resize columns in a table
07 Nov, 2023
13
14
Build a color picker
09 Nov, 2023
15
Craft an image cropper
10 Nov, 2023
16
Build a magnifying glass for images
11 Nov, 2023
17
18
Crop a portion of an image
13 Nov, 2023
19
Add annotations to an image
15 Nov, 2023
20
Take a screenshot of a portion of an element
14 Nov, 2023
21
Drag an element along a circle
16 Nov, 2023
22
Create a radial progress bar
18 Nov, 2023
23
Create a time picker
21 Nov, 2023
24
Snap a draggable element to a grid
19 Nov, 2023
25
Create a linear gauge with discrete values
22 Nov, 2023
27
Use a custom drag handle
24 Nov, 2023
28
An introduction to HTML 5 drag and drop
25 Nov, 2023
29
Customize the appearance of a ghost element
26 Nov, 2023
30
Create your own ghost element
27 Nov, 2023
31
Build a drop file indicator
28 Nov, 2023
32
Preview images before uploading them
29 Nov, 2023
33
Read the content of the dropped file
30 Nov, 2023
34
Build a drop zone for file uploads
01 Dec, 2023
35
Create a sortable list
02 Dec, 2023
36
Display a placeholder in a sortable list
03 Dec, 2023
37
Swap items in a sortable list
04 Dec, 2023
Recent posts ⚡
Use forwardRef with a higher-order component
05 Dec, 2023
Linear gauge
20 Nov, 2023
Pie chart
17 Nov, 2023
Convert an LCH color to a LAB color
10 Nov, 2023
Convert a LAB color to an LCH color
10 Nov, 2023
Newsletter 🔔
If you're into front-end technologies and you want to see more of the content I'm creating, then you might want to consider subscribing to my newsletter.
By subscribing, you'll be the first to know about new articles, products, and exclusive promotions.
Don't worry, I won't spam you. And if you ever change your mind, you can unsubscribe at any time.
Phước Nguyễn