(no title)
cljs-js-eval | 6 years ago
[:div {:style {:display "flex", :flex-direction "row"}}
[:label {:for "email"}]
[:input {:type "text"}]]cljs-js-eval | 6 years ago
[:div {:style {:display "flex", :flex-direction "row"}}
[:label {:for "email"}]
[:input {:type "text"}]]
benbristow|6 years ago
Perhaps it might look better if there's a bigger example?
pcr910303|6 years ago
The point of this is not of asthetics, (IMO it’s not that ugly :-)) but more that it just consists of common data structures that is easy to manipulate. If you’re a React person, think of directly writing JSON instead of using indirect React.createElement calls. Writing components in JSON would be impractical; (actually it might not be - I think I’ve seen blogposts using React without JSX) but writing components in cljs data structures are practical and less tooling is needed!
rhaksw|6 years ago
edit Oh I see. You don't need the extra {} to jump into JS mode. And, CLJS requires : to denote keys. I think as long as my editor colors the syntax appropriately I'm okay with either.
rafd|6 years ago
sooheon|6 years ago
cljs-js-eval|6 years ago
cljs-js-eval|6 years ago