Re:TypeScript and JSX
by ivanceras on Sunday September 13, 2015 @07:42AM
(#10211047)
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.
[ Parent
| on HN ]
`m()` actually outputs plain JS objects.
m(".hello", 'world')
outputs {"tag":"div","attrs":{"className":"hello"},"children":["world"]}
Re:TypeScript and JSX
by andreypopp on Sunday September 13, 2015 @08:26AM
(#10211137)
You can also use regular JS control flow within JSX. That's the point.