4 ms·
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 lik
by nepeckman 8y ago
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.
- aidenn0 8y agoabout 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/code.lisp https://github.com/jasom/parenscriptx/blob/master/example/co...