scrimba
Dialogs about Imba
Imba.commit & await
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Imba.commit & await
AboutCommentsNotes
Imba.commit & await
Expand for more info
index.imba
run
preview
console
tag Todo < li
def ontap
data:completed = !data:completed

def render
<self .done=data:completed> data:title

tag App
def addItem
if @input.value
data.push(title: @input.value)
@input.value = ""

def render
<self.vbox>
<form.header :submit.prevent.addItem>
<input@input type='text'>
<button> 'add'
<ul> for item in data
<Todo[item]>

var items = []
Imba.mount <App[items]>
Console
index.html
-24:25