Re:Vue.js: the good, the meh, and the ugly
by nepeckman on Thursday July 05, 2018 @07:54PM
(#17467875)
Agreed. Personally, I much prefer ClojureScript's approach to react, which is to use native vectors combined with keywords. So a component could be declared like this example from the re-frame framework.
[:div.garbage-bin
:on-click #(re-frame.core/dispatch [:delete-item item-id])]
Easier to read, no need for an extra compile step or any non-native syntax.
[ Parent
| on HN ]
Re:Vue.js: the good, the meh, and the ugly
by aidenn0 on Saturday July 07, 2018 @08:47PM
(#17481529)
about 30 seconds after learning react, I wrote a parenscript wrapper for it because I find the SGML syntax to be super annoying.
A translation from the JSX example that was the first (only?) example on the React homepage at the time:
https://github.com/jasom/parenscriptx/blob/master/example/co...