4 ms·
What I like about Imba is that you can update a variable, and the result in the view/page is updated, without any special syntax. let count = 0 def increm
by trafnar 3y ago
What I like about Imba is that you can update a variable, and the result in the view/page is updated, without any special syntax.
let count = 0
def increment
count++
tag App
<self>
<button @click=increment> "Increment"
<div> "Count: {count}"
imba.mount <App>
Try this example here: https://scrimba.com/scrim/cpbmKzsq https://scrimba.com/scrim/cpbmKzsq
(Imba is a compile-to-js language that includes JS/HTML/CSS and a react-like framework all as part of the language. https://www.imba.io https://www.imba.io)
- ilrwbwrkhv 3y agoImba is the only sane framework (and mithril used to be) because it actually uses "events" as the driver of state which makes sense since the web is event driven and allows you to avoid runes, horcruxes and incantations.