Currently components can only have 1 root node. The reason for this limitation is so that we can properly apply attributes passed into the component by applying them to the root node.
But it should be possible for a component to have multiple root nodes. If a component has 2 root nodes the developer explicitly has to define where attributes should be applied by using the $attributes variable
Currently components can only have 1 root node. The reason for this limitation is so that we can properly apply attributes passed into the component by applying them to the root node.
But it should be possible for a component to have multiple root nodes. If a component has 2 root nodes the developer explicitly has to define where attributes should be applied by using the
$attributesvariable