This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-01
Channels
- # adventofcode (1)
- # announcements (10)
- # babashka (13)
- # beginners (104)
- # braveandtrue (2)
- # calva (5)
- # clj-kondo (23)
- # cljdoc (8)
- # clojure (10)
- # clojure-finland (1)
- # clojure-greece (1)
- # clojure-norway (2)
- # clojure-sweden (7)
- # clojure-uk (29)
- # clojurescript (20)
- # community-development (12)
- # cursive (4)
- # datomic (1)
- # duct (2)
- # emacs (24)
- # fulcro (48)
- # off-topic (5)
- # pathom (2)
- # planck (2)
- # quil (3)
- # reagent (17)
- # reitit (7)
Hi, am trying to use the “react-select” component
"react-select": "^3.0.0"
in my re-frame app as follows:
(require '[reagent.core :as reagent])
(require '["react-select" :as Select])
(reagent/render [:div [:> Select {:options (clj->js [{:label "a" :value "A"}])}]]
(.getElementById js/document "app"))
But getting error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
just trying to get it working from the REPL for now but was seeing the issue in my regular ns
the repl experience in cljs varies a fair bit iirc - also i have not found it as dynamic. sorry if this isn't helping, but just mentioning some things that stumped me before.
@willier there is something similar mentioned here: https://clojurians-log.clojureverse.org/reagent/2017-06-06 (look for some of your error message)