Skip to content

Instantly share code, notes, and snippets.

@dwaltrip
dwaltrip / wrapped-react-beautiful-dnd.js
Last active April 24, 2020 02:05
Wrapping react-beautiful-dnd components so that we can pass `onDragEnd` directly to each `Droppable`
import {
DragDropContext as RealDragDropContext,
Droppable as RealDroppable,
Draggable
} from 'react-beautiful-dnd';
import React, { Component } from 'react';
const DroppableManager = {
_onDragEndLookup: {},
@mbostock
mbostock / .block
Last active April 28, 2022 21:44 — forked from mbostock/.block
Sticky Force Layout
license: gpl-3.0