I like(d) Imba.
But till then I found DML, look at the implementation of a tiny Counter here :
import {button, idiv} from "./dml"; function Counter () { let count = 0; let value = idiv("0", {style:"padding-right: 10px"}); let binc = button("inc"); let bdec = button("dec"); binc.onclick = () => value.innerText = ++count; bdec.onclick = () => value.innerText = --count; } Counter()
Directly in the browser, pure Javascript. I wrote a post about it here : DevtoArticles
Regards
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I like(d) Imba.
But till then I found DML, look at the implementation of a tiny Counter here :
Directly in the browser, pure Javascript.
I wrote a post about it here : DevtoArticles
Regards