loading data in react
This example demonstrates how to load and display CSV data within a React component, using React state to manage the asynchronous data-fetching lifecycle. The app fetches a dataset of CSS named colors via `d3.csv`, then renders a summary message showing the data’s size in kilobytes, row count, and column count. The example highlights the integration of D3’s data-loading utilities with React hooks like `useState` and `useEffect`, and relies on a simple SVG-less `<pre>` element for output while the data is loading or ready.