If the default slot of a <react:Component> only contains other <react:Component>s and no Svelte components or control-flow these components could be compiled into a children prop.
because of the <strong> it wil opt-out of the optimisation and now Tabs no longer get the Tab components as direct children. Maybe the optimised version should also wrap the children into a "useless" fragment.
If the default slot of a
<react:Component>
only contains other<react:Component>
s and no Svelte components or control-flow these components could be compiled into a children prop.could be compiled to:
Note: This could lead to surprises like:
working but it will stop working for:
because of the
<strong>
it wil opt-out of the optimisation and now Tabs no longer get the Tab components as direct children. Maybe the optimised version should also wrap the children into a "useless" fragment.