Fork me on GitHub
#shadow-cljs
<
2019-10-04
>
gleisonsilva13:10:14

Hey guys! How are u? I'm trying to use this component https://www.npmjs.com/package/react-columned in a app with Shadow-cljs, but I couldn't figure out how to instantiate this component... I've required like this ... ["react-columned" :as Columned] ... and mount the component like this:

[:> Columned
    [:img {:alt "Image 1" :src ""}]
    [:img {:alt "Image 2" :src ""}]
    [:img {:alt "Image 3" :src ""}]]
But it doesn't work... what I'm doing wrong?

ouvasam14:10:40

Hi @gleisonsilva i think that you should use [react-columned :default Columned] instead

gleisonsilva14:10:29

I'll try! Tks @U0F7M1KA7

👍 4
ouvasam14:10:51

:default in place of :as

mafcocinco19:10:39

newb question: When starting the nREPL with shadow-cljs (doing this both via Spacemacs/CIDER and from the CLI), I get the following error: No Clojure project was detected. The refactor-nrepl middleware was not enabled. I have not had much luck chasing this down on the interweb and was wondering if anyone here might be able to point me add a helpful answer or at least in the right direction. Seems pretty obvious but I can't reconcile the error message with my shadow-cljs.edn configuration, which looks correct to me. I can DM the configuration to anyone that is willing to help should that be necessary. Thanks!

dpsutton19:10:48

most likely refactor-nrepl doesn't understand that shadow-cljs.edn is a project root

dpsutton20:10:47

none of this is shadow's fault or even concern

mafcocinco20:10:06

Thanks @dpsutton. That makes sense. I'll file an issue with refactor-nrepl.

cider 4