re-natal/resources/cljs-reagent/subs.cljs

9 lines
227 B
Plaintext
Raw Normal View History

2015-11-20 19:22:02 +00:00
(ns $PROJECT_NAME_HYPHENATED$.subs
(:require-macros [reagent.ratom :refer [reaction]])
(:require [re-frame.core :refer [register-sub]]))
(register-sub
:get-greeting
(fn [db _]
(reaction
(get @db :greeting))))