Here’s my method for creating a drag and drop system in React.
Here’s my method for creating a drag and drop system in React. It’s not too complicated and I’m excited to share my process with you in this blogpost.
First let’s create a new React app.
npx create-react-app emoji-fun-app
I entitled it “emoji-fun-app” because I think it would be cool to drag around emojis and create different ‘scenes’
To get started I start by restructuring my App.js file, turn it into a class and removing any unnecessary details. The isn’t going to do much, it’s only going to fetch the API for Emojis and hold our components .