Skip to content

Rendering fragments #501

@darsain

Description

@darsain

Or in other words, support for components to render multiple children:

const Component = () => [<Child1 />, <Child2 />];

It was said on slack it's a wanted feature with intention to be implement in future, so I'm creating this issue to have a place to track the progress.

Someone mentioned that it was already once in Inferno, but at the cost of performance, so it was dropped until a faster implementation is discovered. Was the performance hit really that bad? Because I'd gladly take it if it means the ability to render fragments. Inferno is one of the fastest frameworks out there, so it definitely doesn't lack the perf budget.

I consider this to be an essential feature to not have DOM polluted with useless wrapper elements which just get in the way of developing, maintaining, and styling components. And React already supports this in their Fiber rewrite, which is mostly done.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions