~/talk

react-beautiful-dnd: Behind the magic

Talkat ReactConf AU 2020 · 2020-02-27..02-28· [react]
slides:none on file

react-beautiful-dnd (rbd) implements a full drag-and-drop engine: it registers components via a registry to collect DOM dimensions, snapshots an item's size and applies position:fixed + portal while inserting a placeholder to prevent layout collapse, and uses mouse, touch, keyboard sensors with a lock to prevent concurrent drags. Offscreen work is avoided by windowing, motion uses GPU-friendly CSS transforms and transitions with dynamic duration, animations are interruptible, collision resolution runs in a small physics engine, and ARIA live regions ship out of the box and are overrideable.

AI-written summary · about

  1. 0:00Intro
  2. 0:35What is RBD
  3. 1:43Sensor
  4. 3:51Lock
  5. 5:47Snapshots
  6. 7:04Position Fix
  7. 9:37Windowing
  8. 12:59Moving
  9. 15:29Drop Animations
  10. 20:56Draggable Items
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.