-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8851ed
commit 6e893ff
Showing
3 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
(ns app.core | ||
"This namespace contains your application and is the entrypoint for 'yarn start'." | ||
(:require [reagent.core :as r] | ||
[app.hello :refer [hello]])) | ||
|
||
(defn ^:dev/after-load start [] | ||
(defn ^:dev/after-load render | ||
"Render the toplevel component for this app." | ||
[] | ||
(r/render [hello] (.getElementById js/document "app"))) | ||
|
||
(defn ^:export main [] | ||
(start)) | ||
(defn ^:export main | ||
"Run application startup logic." | ||
[] | ||
(render)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters