Pergunta

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?

Foi útil?

Solução

There is no (require) definition in ClojureScript.

As stated in the wiki page on namespaces:

You must use the :as form of :require

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top