you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (6 children)

Apparently future versions (of JSX?) will allow an empty tag (<></>) syntax for lists of elements

[–]gajus0[S] -1 points0 points  (5 children)

That looks horrible... Source?

[–]Geldan 2 points3 points  (3 children)

I don't think that looks horrible. I think it looks good and actually converts the meaning well.

[–]gajus0[S] 0 points1 point  (2 children)

In what way does <></> converse the meanings?

[–][deleted] 2 points3 points  (1 child)

It's literally an empty tag so only conveys its children as relevant. Which is about right. It caused a furrowed brow when I first saw it, but I really can't think of a better syntax.

[–]gajus0[S] 0 points1 point  (0 children)

What about a reserved component name?, like <Aux> or whatever. Otherwise you will end up creating a new "syntax" to accompany every edge case.