 
 (defn -view-todo-input
   "Note that |editing?| is passed only to trigger :component-did-update to set focus on the state change."
-  [_id_ _title_ _editing?_ _dispatch_]
+  [_id _title _editing? _dispatch]
   (r/create-class {:reagent-render
                    (fn [id title editing? dispatch]
                      [:input.edit {:value       title

      [-view-todo todo dispatch])]])

(defn -view-footer
  [active-count has-completed-todos? visibility dispatch]
  [:footer.footer
   [:span.todo-count
    [:strong active-count] (str " " (if (= active-count 1) "item" "items")
                                " left")]
   [:ul.filters
    (for [{:keys [key title href]} -visibility-spec]
      ^{:key key}
      [:li [:a
            {:href  href

                     (.focus (r/dom-node this)))}))

(defn -view-todo
  [{:keys [id title editing? completed?] :as _todo} dispatch]
  [:li {:class (cond editing? "editing" completed? "completed")}
   [:div.view
    [:input.toggle {:type      "checkbox"
