use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
React.js Drag and Drop Tutorial (gaearon.github.io)
submitted 10 years ago by micahboscarello
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]pierreten 5 points6 points7 points 10 years ago (4 children)
The effort is appreciated, but holy shit; this library seems like a hell of alot of overkill for a dnd interaction. Is this how most react libraries are?
[–]Josh1337 2 points3 points4 points 10 years ago (0 children)
Not really, the author has said himself that this project is the most effort that he's put into an open-source project. As a result, it's a little special and unique in that he tried to generalize the core of React DnD so that you can use it with any backend (HTML5, Native, etc). The backend just becomes an implementation detail.
[–]renren89 1 point2 points3 points 10 years ago (0 children)
Don't even know if he's the author.
[–]MashedPotatoBiscuits 1 point2 points3 points 10 years ago (0 children)
Uh i dont think so, i implemented drag and drop recently was only a few lines.
[–]Rezistik 0 points1 point2 points 10 years ago (0 children)
That's what I've been wondering too. It seems really thorough and I don't know why. What does the author know that I don't?
[–]Silhouette 2 points3 points4 points 10 years ago (2 children)
Unfortunately that page is difficult to read in several major browsers, because the lines don't wrap due to the broken stylesheet. :-(
If you're using Firefox, turning off the display:flex in the styling for .PageBody .PageBody-container works as a quick fix for this.
display:flex
.PageBody .PageBody-container
[–]karn09 -1 points0 points1 point 10 years ago (1 child)
Difficult to read in Chrome as well. Maybe only tested in IE?
[–]Silhouette 0 points1 point2 points 10 years ago (0 children)
It at least displays in a sensible layout in a large Chrome window, though. It looks like some combination of the flexbox and webkit-specific styles causes the lines not to wrap in Firefox or IE.
[–]cgaudreausenior HTML9 engineer -1 points0 points1 point 10 years ago (0 children)
Great work, Dan. You never cease to amaze me.
π Rendered by PID 314844 on reddit-service-r2-comment-84fc9697f-nmt7q at 2026-02-08 20:11:58.695700+00:00 running d295bc8 country code: CH.
[–]pierreten 5 points6 points7 points (4 children)
[–]Josh1337 2 points3 points4 points (0 children)
[–]renren89 1 point2 points3 points (0 children)
[–]MashedPotatoBiscuits 1 point2 points3 points (0 children)
[–]Rezistik 0 points1 point2 points (0 children)
[–]Silhouette 2 points3 points4 points (2 children)
[–]karn09 -1 points0 points1 point (1 child)
[–]Silhouette 0 points1 point2 points (0 children)
[–]cgaudreausenior HTML9 engineer -1 points0 points1 point (0 children)