e.key === 'Enter' && add(e.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}