3 ms·
having played with clojure i really fell in love with hiccup syntax: var element = hiccup [p {id: "thing"} [div "first"]
by keymone 10y ago
having played with clojure i really fell in love with hiccup syntax:
var element = hiccup [p {id: "thing"}
[div "first"]
[div "second"]]
https://github.com/lantiga/react.hiccup https://github.com/lantiga/react.hiccup
- mullsork 10y agoYeah hiccup syntax is my favorite as well. JSX is mentally the same thing for me except I read "HTML" faster than data structures if that makes sense. I wonder if Hiccup was the first one to introduce this syntax? I never bothered to check but I always thought the JSX inventors might have been inspired by it.