Loading Data with React
This example demonstrates how to load and summarize a CSV dataset of CSS named colors within a React application. The app uses React’s `useEffect` hook to fetch the remote CSV via `d3.csv`, then displays a short textual summary of the file’s size in kilobytes, row count, and column count using `d3.csvFormat`. The code relies on React 16.9, ReactDOM, and D3 v7.4.4, with the data sourced from a GitHub gist. While the interface is minimal, it clearly illustrates asynchronous data fetching and state management with `useState`.