-
-
Notifications
You must be signed in to change notification settings - Fork 153
How to run a clojurescript REPL
Yehonathan Sharvit edited this page Sep 25, 2016
·
3 revisions
- Download
cljs.jar
from https://github.com/clojure/clojurescript/releases rlwrap java -jar cljs.jar -m cljs.repl.node
(require '[cljs.js :as cljs :refer [js-eval eval-str empty-state]])
(def my-state (empty-state))
(eval-str my-state "(map inc [1 2 3])" "dontcare" {:eval js-eval} identity)