This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-07
Channels
- # 100-days-of-code (13)
- # beginners (12)
- # business (6)
- # cider (6)
- # cljdoc (9)
- # cljs-dev (1)
- # cljsrn (4)
- # clojars (4)
- # clojure (31)
- # clojure-dev (12)
- # clojure-uk (11)
- # clojurescript (16)
- # cursive (1)
- # datascript (4)
- # datomic (10)
- # editors (1)
- # figwheel-main (3)
- # graphql (10)
- # lein-figwheel (29)
- # off-topic (1)
- # pedestal (1)
- # re-frame (31)
- # reitit (3)
- # shadow-cljs (27)
- # slack-help (5)
- # spacemacs (1)
- # yada (5)
I am displaying a table in reagent. I am displaying multiple rows, each row has its own symbol/name, and then has a vector of floats. So I need a key from the index of the for loop, this is the ^{:key r} But then I need to somehow add the symbol of the row to this index. I tried searching info on the ^ operator, but cannot find anything...
@hoertlehner the ^{:key r}
just adds this map as metadata on the following [:td ...]
vector
@thheller Or does the :key get the key of the element, and then reagent then uses the key similarly to the :key map that I can pass on?
I have no idea what reagent does with this. I'm guessing that it takes it to set the react key
prop later on
@thheller Thanks! I will play around with it. At least I now have an idea that there is "metadata" in clojure also. Thanks!
/join #re-frame
Sorry. :)
Hi folks! Besides my cljs application, I also include two extra files in my index.html file: bootstrap.bundle.min.js and jquery-3.2.1.min.js. Is it possible to get rid of these inclusions and manage these files somehow through my cljs project? I dont really need them in my project but there is functionality like bootstrap dropdown menus that depend on them.