mirror of
https://github.com/status-im/re-natal.git
synced 2025-01-15 15:15:13 +00:00
a4a8d09fe7
- Used macro to generate js/require for prod compilation and {:uri http://localhost:8080/*} for dev builds. - Rearranged sources to be able to support dev and prod profiles
9 lines
227 B
Clojure
9 lines
227 B
Clojure
(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)))) |