Fork of React & D3 Starter
✓ Published0🌍 Public
This example shows a minimal React 19 application that uses D3.js to render a static text message. The component displays “Hello D3 & React” in large, centered type by calling `select` from d3.v7 within a React `useEffect` hook. The app loads React, ReactDOM, and D3 via ES module imports from a CDN, with no build step required. It demonstrates how to integrate D3’s selection API with React’s virtual DOM using a `useRef` hook.
AI-generated descriptionReact & D3 Starter
A minimal starter template combining React 19 and D3.js for data visualization.
Features
- React 19 with JSX support
- D3.js for data visualization
- ES modules via CDN imports
- No build step required
Getting Started
- Open
index.htmlin a modern web browser - The app will display "Hello D3 & React"
Files
index.html- Entry point with import map configurationindex.jsx- React application component
MIT Licensed