Mithril has a detailed “why this instead of react/vue/etc” article https://mithril.js.org/framework-comparison.html that I think should be mandatory for any library entering a crowded space like this. If only because i want to know the priorities of the developers.
Kind of mixed. In Vue, two way bindings are achieved with the v-model directive but that is literally the syntax sugar equivalent of having a prop and an event.
That is, the two way binding with v-model is no different to doing it "manually" anyway.
Personally, it tends to be convent in practice for forms but is an unholy abomination elsewhere. I'd eschew it altogether and deal with the extra verbosity when it crops up.
What you are criticizing is (the fashion of) the example app there, not the functionality or interface of the framework itself.
The lemonade.element function just wants a template and an object with some methods. Whether you use ES6 classes or proxies, or ES3 constructor functions with prototypical inheritance, or object literals to define that object is a matter of taste, and it is all up to you.
[+] [-] kennywinker|4 years ago|reply
[+] [-] montroser|4 years ago|reply
[+] [-] marz0|4 years ago|reply
https://alpinejs.dev/
[+] [-] yewenjie|4 years ago|reply
[+] [-] lloydatkinson|4 years ago|reply
That is, the two way binding with v-model is no different to doing it "manually" anyway.
[+] [-] kansface|4 years ago|reply
[+] [-] cutler|4 years ago|reply
https://lemonadejs.net/v1/examples/hangman
... I see a lot of ugly ES5 code where everything is prefixed with self. How is this progress?
[+] [-] montroser|4 years ago|reply
The lemonade.element function just wants a template and an object with some methods. Whether you use ES6 classes or proxies, or ES3 constructor functions with prototypical inheritance, or object literals to define that object is a matter of taste, and it is all up to you.
[+] [-] unknown|4 years ago|reply
[deleted]
[+] [-] aitchnyu|4 years ago|reply
[+] [-] chrisrickard|4 years ago|reply
[+] [-] unknown|4 years ago|reply
[deleted]
[+] [-] paulhodel|4 years ago|reply
[+] [-] scns|4 years ago|reply
[+] [-] paulhodel|4 years ago|reply
https://lemonadejs.net/v1/examples/hangman
[+] [-] paulhodel|4 years ago|reply
[+] [-] mthoms|4 years ago|reply
[+] [-] bemolator|4 years ago|reply
[+] [-] maficious|4 years ago|reply
[deleted]