Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Build Applications with Meteor

You're reading from   Build Applications with Meteor Isomorphic JavaScript web development

Arrow left icon
Product type Paperback
Published in May 2017
Publisher Packt
ISBN-13 9781787129887
Length 388 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Dobrin Ganev Dobrin Ganev
Author Profile Icon Dobrin Ganev
Dobrin Ganev
Arrow right icon
View More author details
Toc

Drag and drop in React


We can't have a Kanban Board app without a drag and drop (DnD) UI functionality, which is the core UI of any Kanban software. Thanks to Dan Abramov for his DnD React library, we can now easily implement and customize such a functionality in React. The library is built on top of Flux—the original unidirectional data architecture from Facebook (Redux was later developed by Dan Abramov, who was influenced by Flux)—and can beautifully fit into our stack without having any fears about breaking the data flow pattern.

The best way to get familiar with the library is by building a React DnD introduction app and exploring the API in a step-by-step manner.

Fire up your terminal and create a Meteor app:

>> meteor create dnd-intro

Install React and DnD packages:

>> npm install react —save
>> npm install react-dom —save
>> npm install react-dnd —save
>> npm install react-dnd-html5-backend —save

As shown in the following diagram, the library consists of three...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime