01 / action → reducer → view

Make it a task.

One store keeps the list and its count in sync. Add a task, mark it done, then remove it.

In-memoryPlain JavaScript

Task list

Live state