This commit is contained in:
Michiel Borkent 2021-05-23 17:23:04 +02:00
parent 6b9720ed72
commit 2718fec16b
2 changed files with 11 additions and 3 deletions

View file

@ -1,2 +1,2 @@
(defn foo []
(println :foo))
(defn my-alert2 []
(js/alert "My alert 2!"))

View file

@ -54,7 +54,7 @@
<body>
<button onclick="user.myAlert()">
Click me
Click me!
</button>
</body>
</pre>
@ -63,6 +63,14 @@
Click me
</button>
<h2><a href="#src">Source from file</a></h2>
When you have a file on your server, say <tt>cljs/script.cljs</tt>, you can load it using the <tt>src</tt> attribute:
<pre>
&lt;script src=&quot;cljs/script.cljs&quot; type=&quot;application/x-sci&quot;&gt;&lt;/script&gt;
</pre>
<h2><a href="#reagent">Reagent plugin<a/></h2>
To enable <a href="https://github.com/reagent-project/reagent">reagent</a>,