Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

dv2020-ep30-viz30 - React Starter

Public visualization

dv2020-ep30-viz30 - React Starter

0 stars1🌍 Public
Zzach b.
Last edited Mar 27, 2023
Created on Mar 22, 2023

This starter example demonstrates how to integrate D3 into a React application, rendering a simple "Hello React!" message on an otherwise blank canvas. The code imports the `arc` function from D3 but does not yet use it, instead focusing on the minimal setup required for React and D3 to coexist. It loads React 16.9.0, ReactDOM, and D3 v5.11.0 via CDN, then uses `ReactDOM.render` to mount the App component into the `#root` div. The example serves as a foundation for future episodes involving more complex D3 visualizations within React components.

AI-generated description

React & D3 starter code.

Episode 30

Comments

Sign in to join the discussion.

MIT Licensed