I have the following function:
(defn join [a] (clojure.string/join " " a))
But I always got an error:
Uncaught ReferenceError: clojure is not defined
You need to include the module in the namespace form:
(ns my-app.core
(:require [clojure.string :as string]))
(clojure.string/blank? "")
(string/blank? "")
https://github.com/swannodette/lt-cljs-tutorial/blob/master/lt-cljs-tutorial.cljs#L22-L33
If you have trouble, try cleaning and restarting the compiler (lein do cljsbuild clean, cljsbuild auto
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With