This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-24
Channels
- # announcements (4)
- # babashka (75)
- # beginners (57)
- # calva (26)
- # cider (1)
- # clj-kondo (18)
- # cljs-dev (2)
- # clojure (31)
- # clojure-czech (1)
- # clojure-europe (23)
- # clojure-france (3)
- # clojure-germany (2)
- # clojure-uk (3)
- # clojurescript (23)
- # conjure (9)
- # data-oriented-programming (5)
- # datomic (14)
- # defnpodcast (1)
- # deps-new (12)
- # expound (4)
- # fulcro (32)
- # helix (4)
- # jackdaw (70)
- # joker (1)
- # malli (1)
- # music (2)
- # off-topic (19)
- # other-languages (6)
- # podcasts-discuss (5)
- # portal (6)
- # quil (5)
- # re-frame (16)
- # shadow-cljs (14)
- # spacemacs (7)
- # vim (5)
- # xtdb (22)
Forgive me if this is fairly obvious but can anyone explain what this means exactly?
helix.dom/$d helper for rendering components with DOM props coercion; e.g. ($d material-ui/button {:class ["foo" "bar"]})
Correct me if I’m wrong but this allows you to pass DOM props to components that pass them through to their DOM elements.
It looks so similar to $
but it’s in the dom
namespace. Shouldn’t this go in the core
namespace instead?
I believe it lives in the dom
namespace because its doing things that are consistent in the React.DOM, but not on other places, for example, using :class ["a" "b"]
to translate into :className "a b"
is something specific from React.DOM, not a valid thing on React Native for example
☝️ 5
👍 5