Skip to content

Instantly share code, notes, and snippets.

@plexus
Created August 24, 2020 08:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save plexus/76f70b50b8b97859d99013977ce0012f to your computer and use it in GitHub Desktop.
Save plexus/76f70b50b8b97859d99013977ce0012f to your computer and use it in GitHub Desktop.
<!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>
(ns try-new-re-frame.main
(:require [re-frame.core :as re-frame]))
(defn init []
(js/alert "hello"))
;; 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