Basically, the idea is that element won't be appen...
# react
f
Basically, the idea is that element won't be appended unless you add
+
like with strings
n
Or maybe introduce another builder:
Copy code
return node {
    div {
        p { }
    }
}
I suppose it could work for html and for react nodes.
f
this still requires
div
and
p
to be non-pure functions
n
Yep. but nicer DSL.
jsx
is also kind of dsl of ugly
React.createElement()
However, there are good reasons for pure functions as well