#How to have kind of 'named slot' in Solid like Vue?
3 messages · Page 1 of 1 (latest)
<div>
{props.firstSlot}
<div>
{props.secondSlot}
</div>
</div>
<Foo firstSlot={<span />} secondSlot={<span />} />
Ok, I should add props. what's the type of slot in TS? 'JSXElement' ?