Hacker News new | past | comments | ask | show | jobs | submit login

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.




There 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

[2]: https://github.com/holmsand/reagent

[3]: https://github.com/r0man/sablono

[4]: https://github.com/ckirkendall/kioo



There 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.


Which is actually how you should use React to get performance benefits out of language, not just fancy syntactic sugar.


All the parenthesis does not affect noisiness in any way. Common misconception. They actually make things much cleaner and nicer.


Eh, 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: