3 ms·
the point is there is no need for "reactivity" constructs. Organize your "state" the way you want. tag App counter = 0 <self> <button @click=counter+
by abdellah123 3y ago
the point is there is no need for "reactivity" constructs. Organize your "state" the way you want.
tag App
counter = 0
<self>
<button @click=counter++> "{counter}"
imba.mount <App>
it doesn't have to be anything. You're free to organize your code as you wish: colocate, in a different file ... the compiler doesn't transform the variable in any way, nor does it track its "mutation", it "just" "rerenders" on every change. And it's super fast too!
- sesm 3y agoThe tricky part here is to determine what should trigger the rerender.
- tabansi 3y agoall events trigger it, also imba.commit! which you can use however you like
- hackerdangluck 3y ago[dead]