Skip to content

How to run a clojurescript REPL

Yehonathan Sharvit edited this page Sep 25, 2016 · 3 revisions
  1. Download cljs.jar from https://github.com/clojure/clojurescript/releases
  2. rlwrap java -jar cljs.jar -m cljs.repl.node

Playing with self-hosted clojurescript

(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)