Jade/Handlebars don't map to React components.
1,514 karma · joined October 14, 2011
Jade/Handlebars don't map to React components.
[:div
(for [p ctrl.pages]
[:a {:href p.url} p.title])
[:button {:onclick ctrl.rotate} "Rotate links"]]The limitations of creating the view in JS seem invisible, yet visceral to us. I think the reason it is jarring is a fundamental expressivity problem of JS not being able to match templating logic of Handlebars like for-loops and conditionals, despite JS having these statement constructs.
An elegant templating solution is a result of Lisp's mixing of data and logic, something called Hiccup in the ClojureScript community, which I've written about here [1].
[1]: https://github.com/shaunlebron/jumping-from-html-to-clojures...
My condolences that you're going through this. You did good demanding what you're worth. contact any tech headhunter in your area, and you'll find work in no time.
The "ClojureScript JS" compiler cannot replace the original compiler fully, but is already finding some great use-cases, such as this new insanely fast Planck REPL, targeting new platforms like iOS (see Replete, Ambly, React Native), an in-browser try-it-out REPL for our upcoming website, the ability to try out new libraries from a webpage, and possibly adding ClojureScript support to CodePen.
Lot of great stuff coming.
I wish I could watch local broadcast TV from my computer. But when broadcast TV went digital, it made it harder to get a decent signal. Partial signals on digital are a lot worse than it was with analog.
truly great idea. thanks for the game!
In my experience, I joined a company specifically to learn/use clojurescript and others joined the same time, and we were committing code after 2 weeks.
Om has a steep learning curve. I'd recommend quiescent if you want the bare minimum for interfacing with React in cljs.