3 ms·
In addition to that: - Clojurescript code is easier to edit, e.g: if you want to wrap the string in <h1> tag there's a lot less typing you have to do. - Cljs
by iLemming 7y ago
In addition to that:
- Clojurescript code is easier to edit, e.g:
if you want to wrap the string in <h1> tag there's a lot less typing you have to do.
- Cljs code is also "data", it can be send over the network without any modifications or encoding, sent to the REPL for evaluation, etc.
- You can "eval" every single part of it:
"Hello, world!" string;
[:div "Hello, world!"] vector;
component function itself - these are all valid Clojure structures.
What happens if you copy-paste any part of the JSX into JS REPL?