A basic demonstration of d3-drag used with React to drag circles connected by lines.
This variant uses useReducer to avoid creating a new closure on each render.
Inspired by Observable: Drag (SVG).