Skip to main content
100%

React Starter

✓ Published1🌍 Public
Ggjonor
Last edited Feb 20, 2020
Created on Feb 20, 2020
Forked from React Starter

This example demonstrates how to integrate React with D3 by building a resizable SVG container. A draggable div wrapper, observed via ResizeObserver, updates the SVG’s width and height state through a custom React hook (useState, useEffect) and D3’s drag behavior. The visualization shows the interplay between React’s declarative rendering and D3’s imperative event handling. It uses React 16, ReactDOM, d3.select, d3.drag, and d3.event to log and apply dynamic size changes.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes