3 ms·
Wow, that is really concise! ClojureScript also has a nice react kind-of-thing (now named reagent), though all the parenthesis makes it more noisy.
by cordite 13y ago
Wow, that is really concise!
ClojureScript also has a nice react kind-of-thing (now named reagent), though all the parenthesis makes it more noisy.
- bslatkin 13y agoThere's also Om: https://github.com/swannodette/om/wiki/Basic-Tutorial https://github.com/swannodette/om/wiki/Basic-Tutorial
- Gonzih 13y agoWhich is actually how you should use React to get performance benefits out of language, not just fancy syntactic sugar.
- chc 13y agoThere are three ClojureScript React libraries I've seen, each with a very different approach. Reagent is basically just a native interface to React. Om sort of reimplements React on top of React with a few modifications to make it more ClojureScripty (e.g. taking advantage of persistent data structures for state). Quiescent takes React and turns it into a simple rendering library, leaving out any concept of state management.
- vmind 13y agoThere are actually two main React libraries for ClojureScript, Om[1] and Reagent[2]. There are also other libraries for doing the templating if you prefer hiccup[3] or enlive[4] style templates, which I find a bit more readable than straight function calls. Overall though, React seems to be shaping up as a great solution for building reactive templates that isn't tied into larger frameworks like the solutions within AngularJS or Ember.js. [1]: https://github.com/swannodette/om https://github.com/swannodette/om [2]: https://github.com/holmsand/reagent https://github.com/holmsand/reagent [3]: https://github.com/r0man/sablono https://github.com/r0man/sablono [4]: https://github.com/ckirkendall/kioo https://github.com/ckirkendall/kioo
- Gonzih 13y agoAll the parenthesis does not affect noisiness in any way. Common misconception. They actually make things much cleaner and nicer.
- cordite 13y agoEh, I beg to differ, coming from the Haskell world. I think what you are appreciating is the tree-but I may be wrong in my supposition.