Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pwdisswordfishz
· 1y ago · 0 comments
No, that's an ambiguity in React. JSX defines only syntax.
Comments
[–]
90s_dev
1y ago
True. Then can you suggest a standardized ECMAScript JSX proposal that doesn't turn this into a "children" key on an object? Would you just transform it into an array? ["foo", { bar: qux }, "baz"] ?
[–]
WorldMaker
1y ago
That array does better match the current function parameters, so would be a simpler proposal to existing transpilers.
[–]
90s_dev
1y ago
Yeah it seems fine. I wouldn't be strongly opposed to it. Standardization of
either
is better than nothing.