This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-23
Channels
- # announcements (2)
- # babashka (25)
- # beginners (33)
- # biff (13)
- # calva (13)
- # clerk (82)
- # clj-commons (3)
- # clj-kondo (8)
- # clj-on-windows (23)
- # cljdoc (6)
- # clojure (16)
- # clojure-belgium (1)
- # clojure-dev (58)
- # clojure-europe (53)
- # clojure-nl (1)
- # clojure-norway (15)
- # clojure-uk (2)
- # clojurescript (17)
- # core-async (5)
- # cursive (6)
- # datahike (1)
- # datomic (8)
- # emacs (25)
- # etaoin (21)
- # events (4)
- # graalvm (33)
- # honeysql (7)
- # hyperfiddle (1)
- # lsp (49)
- # luminus (4)
- # malli (18)
- # off-topic (63)
- # reagent (11)
- # releases (1)
- # shadow-cljs (200)
- # timbre (1)
- # tools-build (17)
Do reagent components have to enclose everything in divs? Is there a way to avoid having a div inside of a div when the app gets rendered? UPDATE:
<div id="app">
<div>
<!-- the contents of a single component -->
<!-- a lot of tags here -->
</div>
</div
I mean, to render directly to the app div when I have one component?
<div id="app">
<!-- the contents of a single component -->
<!-- a lot of tags here -->
</div
@U0B1SDL67, ah, I didn't recognize it as reagent's syntax. What does :>
mean? Never used it, nor :<>
@U0479UCF48H, that's what I'm looking for, thanks.
For reference, :<>
is a syntax shortcut for React fragments. :>
is a shortcut for r/adapt-react-class
. You typically use :>
when you are using a JS React component
@U0479UCF48H, great, thanks.
Unfortunately the reagent docs don’t concentrate this info in a single page, but here are sources for both of these things. https://github.com/reagent-project/reagent/blob/master/doc/ReactFeatures.md https://github.com/reagent-project/reagent/blob/master/doc/InteropWithReact.md