This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-24
Channels
- # announcements (30)
- # asami (9)
- # babashka (37)
- # beginners (120)
- # calva (26)
- # cider (3)
- # clara (9)
- # clj-commons (7)
- # clj-kondo (17)
- # cljsrn (2)
- # clojure (32)
- # clojure-europe (56)
- # clojure-nl (1)
- # clojure-norway (13)
- # clojure-uk (4)
- # clojurescript (34)
- # conjure (1)
- # copenhagen-clojurians (8)
- # core-async (21)
- # cursive (2)
- # datahike (2)
- # datascript (5)
- # events (4)
- # fulcro (32)
- # graalvm (10)
- # heroku (3)
- # introduce-yourself (1)
- # jobs (2)
- # lsp (3)
- # luminus (1)
- # malli (8)
- # meander (15)
- # minecraft (1)
- # nrepl (2)
- # off-topic (57)
- # pathom (2)
- # polylith (35)
- # reagent (6)
- # reitit (8)
- # releases (1)
- # rewrite-clj (7)
- # shadow-cljs (21)
- # timbre (4)
- # tools-build (1)
- # tools-deps (33)
- # vrac (8)
Hi, I'm trying out interop with React. I am trying to use this https://github.com/rcdexta/react-trello have included it with (:require ["react-trello" :as rt])
and then using it in hiccup like [rt/Board ...]
but that says it is undefined. I've also tried [:> rt/Board
and :r>
. Both say undefined. I tried using :refer [Board]
instead with the same result. I'm not sure how to handle this case.
Yes on shadow-cljs
rt
is a #js object, Board is undefined.
rt
probably is Board
.
If it looks like a component, use :as Board
.
If it has a default
field, use :default Board
.
In any case, you can use this table, but make sure to read the whole section since there can be subtleties: https://shadow-cljs.github.io/docs/UsersGuide.html#_using_npm_packages