Loading Data with React & D3
✓ Published0🌍 Public
This example displays a dataset summary in large text, showing the number of rows, columns, and file size of a CSS named colors CSV loaded from a GitHub gist. The React component uses `useState` and `useEffect` to fetch the data with `d3.csv`, then passes it to a `Message` function that computes statistics using `d3.csvFormat`. The app renders the summary inside a `<pre>` element, with a loading message displayed until the data arrives.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed