3 ms·
Agree with sibling comments on control flow vs elements separation. For your specific case though, I think a middle ground can be found here: <ul #if={users}
by notpushkin 1y ago
Agree with sibling comments on control flow vs elements separation. For your specific case though, I think a middle ground can be found here:
<ul #if={users}>
{#each users as user}
<li>{user.name}</li>
{/each}
</ul>