"It feels like writing vanilla javascript for the most part, which is delightful and exciting."
- this sentence makes me shiver.
That being said, this looks interesting, thanks for bringing it to attention!
Re:Is ReactJS really fast?
by jszymborski on Thursday June 04, 2015 @08:25PM
(#9663121)
ahaha I understand why it would. I meant that the framework is extremely unobtrusive. All you do is create the beautiful expressive javascript objects which act as your models and controls, and then you just mount it with a mithril command, and that's it!
Mithril is awesome (been using it for 7 months now). I really like that they finally have implemented components and described how they should be made.
Whats the situation about components now? Last time I checked this a while ago React would encourage having lots of components with internal state and calling setState on a subcomponent would only update the DOM on that subtree. On the other hand, most other virtualdom frameworks they would encourage you to keep a single global model object to describe the whole page.
Their benchmarks have it at 8x faster at rendering (uncompiled) and 28x faster to load (although Benchmarks Lie (TM)).
It feels like writing vanilla javascript for the most part, which is delightful and exciting. The Views part however, which is most comparable with React since React only deals with views, is extremely reminiscent of React, and you can even write MSX, which is just basically JSX with some subtle differences.
[1] http://mithril.js.org/
EDIT: Link