3 ms·
No, that's an ambiguity in React. JSX defines only syntax.
by pwdisswordfishz 1y ago
No, that's an ambiguity in React. JSX defines only syntax.
- 90s_dev 1y agoTrue. 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 agoThat array does better match the current function parameters, so would be a simpler proposal to existing transpilers.
- 90s_dev 1y agoYeah it seems fine. I wouldn't be strongly opposed to it. Standardization of either is better than nothing.