This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-06
Channels
- # announcements (5)
- # aws (28)
- # babashka (4)
- # beginners (163)
- # bristol-clojurians (2)
- # calva (4)
- # cider (18)
- # clj-kondo (30)
- # cljs-dev (28)
- # cljsrn (50)
- # clojure (96)
- # clojure-europe (25)
- # clojure-italy (6)
- # clojure-losangeles (1)
- # clojure-nl (4)
- # clojure-sweden (7)
- # clojure-uk (32)
- # clojurescript (39)
- # conjure (74)
- # cursive (12)
- # events (1)
- # fulcro (32)
- # helix (71)
- # jackdaw (2)
- # leiningen (10)
- # off-topic (14)
- # pathom (59)
- # rdf (7)
- # re-frame (6)
- # reitit (28)
- # ring (7)
- # shadow-cljs (207)
- # slack-help (2)
- # spacemacs (3)
- # specter (7)
- # sql (12)
- # tools-deps (14)
- # xtdb (32)
Morning!
Good morning 🙂
I don’t know if there are any reagent wizards in here, maybe someone is able to help me out. I’ve been stuck on this for 3 days now :white_frowning_face: https://stackoverflow.com/q/61629092/3286569
instead of reactify-component
?
I tried that and it just gives me a different error, that I “Objects are not valid as a React child”
https://github.com/reagent-project/reagent/blob/master/examples/react-context/src/example/core.cljs#L22-L24 this might also be what you're looking for
I tried
(def root-view
(reagent/adapt-react-class
(withAuthenticator
(reagent/as-component main-panel))))
> I see. withAuthenticator is a HOC. yeah, I understand how they are supposed to work in principle and there even is a guide about them in the reagent docs https://github.com/reagent-project/reagent/blob/master/doc/InteropWithReact.md#example-decorator-higher-order-components
fwiw, as-component should be used like [main-panel]
instead I think. But yeah, I was guessing it was the opposite of what you were trying 😁
I’ll try that out after work, cheers
I have no clue what is going on 😄
grr! does anyone really refactor using using Drag-and-Drop? Why would that ever be a desirable feature?
yeah its one of those intellij features
that turns around to bite you every now and then
dragging and dropping sexps, like a gui paredit ? might be quite nice