React 125 ⚛️ WebGL and Canvas Interactivity in React
React does not have a native canvas element. The <canvas> tag is a DOM element, and the drawing context is an imperative API that sits outside React’s declarative model. Interactivity—detecting a click on a shape, hovering over a pixel, dragging a node—requires translating DOM events into coordinates that the canvas understands, and then deciding whether…