3 ms·
The author says they don't like purity and immutability, because it limits their ability to "get stuff done". But in the long run you get many benefits, whether
by halis 10y ago
The author says they don't like purity and immutability, because it limits their ability to "get stuff done". But in the long run you get many benefits, whether you have 1000 developers or one. Namely that a whole class of bugs will be eliminated and you can do quick reference comparisons to tell if something changed.
Every time I go to look at Vue I can't stand the fact that it DOESN'T have JSX. I've used every template system you can think of and they always fall apart when things get hard.
JSX is basically JavaScript but a much easier and nicer syntax (basically HTML).
You get the same flexibility with Elm, but even there you don't get the nice JSX syntax:
ul [class "grocery-list"]
[ li [] [text "Pamplemousse"]
, li [] [text "Ananas"]
, li [] [text "Jus d'orange"]
]
The one criticism I happen to agree with is certain aspects of using forms in React. Checkboxes and radio buttons are pretty buggy and stupid. Kind of unacceptable at this point.
- pm 10y agoIf I remember correctly the latest version of Vue.js does support JSX.
- ggregoire 10y agoYou should check this: https://vuejs.org/v2/guide/render-function.html#JSX https://vuejs.org/v2/guide/render-function.html#JSX
- elbear 10y agoFor Elm, there's elmx https://github.com/pzavolinsky/elmx https://github.com/pzavolinsky/elmx