Skip to main content
100%

React Starter

✓ Published0🌍 Public
MMaciek Sitkowski
Last edited Dec 17, 2020
Created on Dec 17, 2020
Forked from React Starter

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 description

React Starter code.

MIT Licensed

Similar vizzes