event.key === 'Enter' && add(event.target)} />

todo

{#each todos.filter((t) => !t.done) as todo (todo.id)} {/each}

done

{#each todos.filter((t) => t.done) as todo (todo.id)} {/each}