4 ms·
I really like the simplicity of mithril with regards to expressing the view. It's less verbose than jsx, and even less verbose than html. You cant think of it a
by ivanceras 11y ago
I really like the simplicity of mithril with regards to expressing the view. It's less verbose than jsx, and even less verbose than html. You cant think of it as a tree of minimalistic functions organized in a JSON structure. Also, you can use regular javascript control flow in the view, that's awesome.
- andreypopp 11y agoYou can also use regular JS control flow within JSX. That's the point.
- pygy_ 11y ago`m()` actually outputs plain JS objects. m(".hello", 'world') outputs {"tag":"div","attrs":{"className":"hello"},"children":["world"]}