Created
August 24, 2020 08:01
-
-
Save plexus/76f70b50b8b97859d99013977ce0012f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>acme frontend</title> | |
</head> | |
<body> | |
<div id="root"></div> | |
<script src="/js/main.js"></script> | |
</body> | |
</html> |
This file contains hidden or 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
(ns try-new-re-frame.main | |
(:require [re-frame.core :as re-frame])) | |
(defn init [] | |
(js/alert "hello")) |
This file contains hidden or 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
;; shadow-cljs configuration | |
{:source-paths | |
["src/dev" | |
"src/main" | |
"src/test"] | |
:dependencies | |
[[re-frame/re-frame "1.1.0"]] | |
:dev-http {8080 "public"} | |
:builds | |
{:frontend | |
{:target :browser | |
:modules {:main {:init-fn try-new-re-frame.main/init}}}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment