Skip to content

Instantly share code, notes, and snippets.

@mphuie
Created July 22, 2019 16:43
Show Gist options
  • Save mphuie/08756ed9393cafee6e4e3b1e3fab9412 to your computer and use it in GitHub Desktop.
Save mphuie/08756ed9393cafee6e4e3b1e3fab9412 to your computer and use it in GitHub Desktop.
stock app in imba
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