Missing square brackets on subscription for :name

This commit is contained in:
assoc-in 2016-12-17 18:58:53 -06:00 committed by GitHub
parent 6d56754532
commit 1dee4b5aca
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ quick sketch of the entire pattern. It is very straight-forward.
(defn main-panel ;; the top level of our app
[]
(let [name (re-frame/subscribe :name)] ;; we need there to be good data
(let [name (re-frame/subscribe [:name])] ;; we need there to be good data
[:div "Hello " @name])))
(defn top-panel ;; this is new