-
-
Save joannecheng/258fb5bb1106fe5b0f7907ec8f3643ba 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