Skip to main content
100%

Fork of React & D3 Starter

✓ Published0🌍 Public
HHariniPotla@my.unt.edu
Last edited Feb 27, 2026
Created on Feb 27, 2026
Forked from React & D3 Starter

This example demonstrates a minimal integration of React and D3, rendering the text "Hello D3 & React" as a large, centered message. It shows how a React component can use a ref and the `useEffect` hook to call D3's `select` method, updating the DOM element's content directly. The code imports React, ReactDOM's `createRoot`, and D3 v7, with the application bootstrapped from an `index.jsx` file into a root div defined in `index.html`. The styling uses a CSS class for the large font size and centered alignment.

AI-generated description
MIT Licensed

Similar vizzes