Back to Browse

Creating a Custom React hook to make components draggable

20.5K views
Oct 16, 2022
7:34

Hey everyone, in this episode we are going to extend the functionality we've built in the previous episode. We will create a reusable custom react hook so that we can we can easily share the functionality and make any component "draggable". If haven't seen the previous episode, please go check out the video in the link below. Part 1: Building draggable Component with React and TypeScript — https://www.youtube.com/watch?v=ZcDWyVj6-uU Get the code on Github — https://github.com/diveindev/dragme/tree/custom-hook Music — https://www.epidemicsound.com/

Download

1 formats

Video Formats

360pmp411.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Creating a Custom React hook to make components draggable | NatokHD