React Starter
✓ Published0🌍 Public
This example shows how to fetch and display geospatial data in a React component. It loads a TopoJSON topology of world land from the `world-atlas` package using the Fetch API, then passes the result to React’s `useState` hook for storage. The `useEffect` hook triggers the asynchronous data retrieval, and the fetched topology is rendered as raw text inside a `<pre>` element. The code relies on React’s state and lifecycle management rather than any mapping or visualization library, so no chart is drawn.
AI-generated descriptionReact Starter code.
MIT Licensed