Created
July 22, 2019 16:43
-
-
Save mphuie/08756ed9393cafee6e4e3b1e3fab9412 to your computer and use it in GitHub Desktop.
stock app in imba
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = | |
results: [] | |
tag App | |
def mount | |
var resp = await window.fetch "https://api.steinhq.com/v1/storages/5d2aae71490adc53ef5c2a6c/Sheet1" | |
data:results = await resp.json | |
Imba.commit | |
def render | |
<self> | |
<h1> "Stocks" | |
<table> | |
for row in data:results | |
<tr> | |
<td> row.Stock | |
<td> row.Price | |
Imba.mount <App[data]> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment