- [] no todo page
- how to add @hotkey('enter') to input = use form without button
<form @submit.prevent=handleAddTodo>
<input bind=newTodoText .new-todo placeholder="What needs to be done?" autofocus>
- add methods to state (add/edit/deleteTodo setAll/clearComplete/setFilter save)
- monitor hashchange event
def mount
# start listening for route changes
router.on "hashchange" do doRouting()
doRouting()
def doRouting
state.setFilter router.hash.replace("#/", "").trim()
render()