Fork of React & D3 Starter
✓ Published2🌍 Public
This example demonstrates a minimal integration of React and D3, where the text "Hello D3 & React" is rendered inside a React component. The component uses a `useRef` hook and a `useEffect` hook to select a DOM element via D3's `select` method and set its content, while React handles the component mounting through `createRoot` from `react-dom/client`. The imports include React 19, D3 v7, and are loaded through an import map in the HTML. The styling applies a large font size centered in the page.
AI-generated descriptionMIT Licensed