🌍 Public
Viewing a saved revision (read-only)
9eb9b5d0d07e4dfe92e5f28e60dd6faa
Loading Data
This example demonstrates asynchronous data loading by fetching a CSV file of Iris flower measurements and displaying the parsed data as a text preview in the browser. The page initially shows “LOADING” until `fetch` retrieves the file, then `csvParse` converts the raw text into an array of objects. Numeric fields are explicitly converted from strings to numbers with the unary plus operator, and the resulting dataset is rendered inside a `pre` element. The visualization uses a minimal state management pattern with a `setState` function to trigger re-rendering once the data arrives.
AI-generated descriptionA circle that follows the mouse using unidirectional data flow.