Skip to content

An example of drag and drop functionality using React

Notifications You must be signed in to change notification settings

tmetcalfe89/react-dnd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

This is an exercise in making a React-based drag-and-drop system.

Features

  • Starts with three randomly-colored squares.
  • Drag them around, and drop them on each other to do something.
  • Choose between that "something" being swapping the dropped and the dropped into, or placing the dropped above the dropped into.
  • Add new squares.
  • Trash existing squares.

Develop

  1. Clone this repo.
  2. Run npm i, then npm start in the project's directory.
  3. ...
  4. Profit?

Live

There's a live version on Github Pages. Head here to play with it.

About

An example of drag and drop functionality using React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published