2 ms·
I was referring to React's createElement-function (and assigning it to const e for ergonomics). const div = e("div", {className: "thing-contents"}, "Hello")
by jampekka 2y ago
I was referring to React's createElement-function (and assigning it to const e for ergonomics).
const div = e("div", {className: "thing-contents"}, "Hello")
Or with coffeescript
div = e "div", className: "thing-contents", "Hello"
Or with coffeescript and simple Proxy wrapper:
div = @div class: "thing-contents", "Hello"