Cloact: Minimalistic React for ClojureScript
holmsand.github.io
Cloact: Minimalistic React for ClojureScript
1–10 of 45 posts
Re: Cloact: Minimalistic React for ClojureScript
#2Re: Cloact: Minimalistic React for ClojureScript
#3IMHO, This look more easy to read than OM
Re: Cloact: Minimalistic React for ClojureScript
#4Re: Cloact: Minimalistic React for ClojureScript
#5IMHO, This look more easy to read than OM
Agreed. I'm so much more into the hiccup style tree building. This looks like something I can get into tonight. David is great but he prefers his code a little mysterious.
More importantly, Cloact is much closer to the React model while Om diverges quite a bit because we're interested in enabling patterns that are more difficult otherwise, trivial complete UI state rewind on exceptions/errors, trivial undo, and more powerful operations on the applicate state history oriented at interactive debugging and development.
Of course these values might not interest you and you just want a simple direct mapping onto React. Then Cloact looks awesome! :)
Re: Cloact: Minimalistic React for ClojureScript
#6Earlier quoted context omitted.
Agreed. I'm so much more into the hiccup style tree building. This looks like something I can get into tonight. David is great but he prefers his code a little mysterious.
You can use Hiccup style with Om via sablono if you like via http://github.com/r0man/sablono . Om will never dictate nor provide an alternate syntax layer as everyone will want something different. I personally don't care for Hiccup. More importantly, Cloact is much closer to the React model while Om diverges quite a bit because we're interested in enabling patterns that are more difficult otherwise, trivial complete…
Re: Cloact: Minimalistic React for ClojureScript
#7One bit that doesn't look appealing to me in Om, or Cloact is the tree-building. Is there anything in ClojureScript and React right now that will let me build templates in HTML and attach functionality via attributes Angular-style?
Re: Cloact: Minimalistic React for ClojureScript
#8While I haven't had any time to play with ClojureScript, Om, React, etc. I've been keeping a pretty watchful eye, because the stack looks very appealing. One bit that doesn't look appealing to me in Om, or Cloact is the tree-building. Is there anything in ClojureScript and React right now that will let me build templates in HTML and attach functionality via attributes Angular-style?
Why don't you give React a whirl and try not to force Angular thinking on to the React model. Shouldn't take more than an hour or two of investment to make a small toy app to experiment with.
Re: Cloact: Minimalistic React for ClojureScript
#9Re: Cloact: Minimalistic React for ClojureScript
#10Earlier quoted context omitted.
Agreed. I'm so much more into the hiccup style tree building. This looks like something I can get into tonight. David is great but he prefers his code a little mysterious.
You can use Hiccup style with Om via sablono if you like via http://github.com/r0man/sablono . Om will never dictate nor provide an alternate syntax layer as everyone will want something different. I personally don't care for Hiccup. More importantly, Cloact is much closer to the React model while Om diverges quite a bit because we're interested in enabling patterns that are more difficult otherwise, trivial complete…
Yes, exactly, Cloact tries to stay really close to plain React. But since it allows you to separate data from rendering, undo should be quite trivial to implement (if you keep all your application data in a single cloact/atom)...