Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of React & D3 Starter

Public visualization

Viewing a saved revision (read-only)

4774be32dc3a45d4884738a9cc5da792

Fork of React & D3 Starter

0 stars0🌍 Public
SSanjayRamaSwamyAdla@my.unt.edu
Last edited Mar 9, 2026
Created on Mar 9, 2026
Forked from React & D3 Starter

This example demonstrates a minimal integration of React and D3, displaying the text "Hello D3 & React" in a large, centered message. It uses a React `useRef` hook to get a reference to a div, and a `useEffect` hook to call `d3.select` on that reference to set the text content. The app is rendered using React's `createRoot` from `react-dom/client`, with D3 v7 and React 19 imported via an import map.

AI-generated description