Question

I ClojureScript I can do something within a ns declaration like like:

(ns demo2
  (:require
    [goog.ui.Textarea               :as text-area]
  )
)

: but :

(require '[goog.ui.Textarea :as text-area])

: doesn't work. Does anyone know what I'm doing wrong?

Was it helpful?

Solution

There is no (require) definition in ClojureScript.

As stated in the wiki page on namespaces:

You must use the :as form of :require

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top