Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

React Starter

Public visualization

React Starter

0 stars1🌍 Public
Nnithya13
Last edited Jan 27, 2020
Created on Jan 27, 2020
Forked from React Starter

This example demonstrates a minimal React setup for embedding a D3.js visualization, displaying a large, centered text message ("Hello World" style) in a responsive layout. The code uses React's `createRoot` API to mount a component, while D3's `select` and `text` methods manipulate the DOM directly within a `useEffect` hook. The visualization renders static text with no interactive or data-driven elements, serving as a bare-bones starter template for integrating D3 into a React application. The `index.html` file loads a bundled JavaScript file and styles the message with CSS.

AI-generated description

React Starter code.

Comments

Sign in to join the discussion.

MIT Licensed