     (dom/div nil
       (kanban-card/card
         (om/computed (:card @state)
-                     {:drag-fns {:end #(swap! state update :counter inc)}}))
-      (dom/div nil (str "Drag ended: " (:counter @state) " times"))))
+                     {:drag-fns {:end (partial update-cb-info state)}}))
+      (render-cb-info state "Drag ended")))
   {:card {:id 1 :text "Initial text"} :counter 0}
   {:inspect-data true :history true})

(defcard
  "## Behaviour")

(defcard
  "### Card with an activate callback"
  (fn [state _]
    (dom/div nil
      (kanban-card/card
        (om/computed (:card @state)
                     {:activate-fn #(swap! state update :counter inc)}))
      (dom/div nil (str "Activated: " (:counter @state) " times"))))
  {:card {:id 1 :text "Initial text"} :counter 0}
  {:inspect-data true :history true})

(defcard

    (dom/div nil
      (kanban-card/card
        (om/computed (:card @state)
                     {:drag-fns {:start (partial update-cb-info state)}}))
      (render-cb-info state "Drag initiated")))
  {:card {:id 1 :text "Initial text"} :counter 0}
  {:inspect-data true :history true})

