Skip to main content
100%

Modules

✓ Published0🌍 Public
YYash G
Last edited Mar 25, 2020
Created on Mar 21, 2020
Forked from React Starter

This example demonstrates asynchronous data handling in a JavaScript module system. It shows a large text element displaying the value `123` from the first entry of a hardcoded JSON dataset. The visualization uses the JavaScript `Promise` API and `setTimeout` function to simulate a two-second delay before resolving the data. The `getData` function, exported from a separate module, is imported and its `.then` method updates the HTML element's text content, illustrating a decoupled data-fetching pattern without any charting library.

AI-generated description

Modules code.

MIT Licensed

Similar vizzes