This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-09
Channels
- # announcements (16)
- # beginners (86)
- # calva (4)
- # cider (17)
- # circleci (1)
- # clj-kondo (4)
- # cljs-dev (12)
- # cljsrn (4)
- # clojure (82)
- # clojure-europe (2)
- # clojure-houston (4)
- # clojure-italy (5)
- # clojure-nl (7)
- # clojure-spec (49)
- # clojure-uk (19)
- # clojurescript (76)
- # core-async (7)
- # cursive (1)
- # data-science (4)
- # datomic (5)
- # figwheel (1)
- # fulcro (10)
- # graalvm (15)
- # jobs (1)
- # juxt (6)
- # kaocha (2)
- # leiningen (5)
- # random (2)
- # shadow-cljs (25)
- # sql (5)
- # tools-deps (113)
- # vim (3)
- # yada (14)
Using fulcrologic/fulcro {:mvn/version "2.8.12"}
When I add in [:reconciler-options :tx-listen]
any function (constantly nil)
, my inspector stop to show transactions
Is it possible to pass DOM elements as props? (i.e. {:some-content (dom/div "Foo")}
) and if so, how would I render it?
@njj yes, just put that on the render, like if you were putting a string or anything
Objects are not valid as a React child (found: fulcro.client.dom/div). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.
Can you share a working example? @U066U8JQJ
sorry, no time to write one and test now, but the error looks like you tried to send the symbol of the div isntead of the return of (dom/div ...)
another common pattern is to send a factory, so you can it during the render, both works