aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/tau
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2022-12-20 00:45:34 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2022-12-20 00:55:07 +0100
commit0dd14a00d40ddb3426f2222e57f141c30a273238 (patch)
treeaf7e4b2dac156da344a1fa3b44d2e922a2969445 /src/frontend/tau
parent1d7acc7f001d53e88afecf045147bae97cc9e7a9 (diff)
feat: Add frontend entry point
Diffstat (limited to 'src/frontend/tau')
-rw-r--r--src/frontend/tau/core.cljs24
1 files changed, 21 insertions, 3 deletions
diff --git a/src/frontend/tau/core.cljs b/src/frontend/tau/core.cljs
index e2417cc..3cad0ba 100644
--- a/src/frontend/tau/core.cljs
+++ b/src/frontend/tau/core.cljs
@@ -1,4 +1,22 @@
-(ns tau.core)
+(ns tau.core
+ (:require
+ [day8.re-frame.http-fx]
+ [reagent.dom :as rdom]
+ [re-frame.core :as rf]
+ [tau.events]
+ [tau.routes :as routes]
+ [tau.subs]
+ [tau.views :as views]))
-(defn mount-app
- [])
+(defn ^:dev/after-load mount-root
+ []
+ (rf/clear-subscription-cache!)
+ (rdom/render
+ [views/app]
+ (.querySelector js/document "#app")))
+
+(defn ^:export init
+ []
+ (routes/start-routes!)
+ (rf/dispatch-sync [:initialize-db])
+ (mount-root))