This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # aws (1)
- # beginners (60)
- # boot (12)
- # cider (7)
- # cljs-dev (8)
- # cljsrn (24)
- # clojure (169)
- # clojure-nl (1)
- # clojure-russia (3)
- # clojure-spec (15)
- # clojure-switzerland (1)
- # clojure-uk (24)
- # clojurescript (120)
- # core-async (9)
- # datomic (3)
- # emacs (2)
- # gsoc (3)
- # klipse (2)
- # leiningen (4)
- # numerical-computing (13)
- # off-topic (95)
- # om (7)
- # onyx (1)
- # powderkeg (2)
- # protorepl (2)
- # re-frame (6)
- # reagent (58)
- # ring-swagger (1)
- # rum (28)
- # untangled (42)
- # vim (6)
I can see the value being printed, a different one each time, but the html doesn't change. Why is that?
@pupeno common gotcha 😉 https://presumably.de/reagent-mysteries-part-2-reloading.html
Yeah yeah... I know about this, I've been using reagent long enough... I just had a brain fart.
it's a common enough issue (especially because reagent docs (used to?) encourage referring
sorry if this has been answered in other places, but how do I remove
react-dom-server from my build? (I assume it's not needed if I'm not server-rendering)
if it's a transitive dep, try
lein deps :tree or
boot show --deps to see where the dependency comes from
in which case you can use excludes for that dependency (or global excludes) to remove it from the build
lein deps :tree gives me this:
[reagent "0.6.0"] [cljsjs/react-dom-server "15.2.1-0"] [cljsjs/react-dom "15.2.1-0"] [cljsjs/react "15.2.1-0"]
:dependencies [[reagent "0.6.0" :exclusions [cljsjs/react-dom-server]] should do the trick
hmm. adding the exclusion to
0.6.0 is making the build fail for me, but upgrading to
0.6.1 seems to remove
react-dom-server from the minified build by default. weird o.o
If I have a value that's been created by reagent/adapt-react-class, is a there a way to get to the backing react object?
I'm trying to use react-bootstrap with bootstrap 4.0.0 (from webjars) with reagent. It seems that cljsjs.react-bootstrap is pulling the 3.3.6-1 version of bootstrap. Can I use it with bootstrap 4.0.0?
[cljsjs/react-bootstrap "0.30.7-0" :exclusions [[cljsjs/react]]] [cljsjs/bootstrap "3.3.6-1"] [cljsjs/jquery "1.9.1-0"]
^ that's what I mean by it pulling the 3.3.6-1 version of bootstrap. I'm not sure where that dependency is specified though
@pesterhazy Thanks for your reply. I was trying to do a dropdown in the navbar, which I'm pretty sure needs the js component. However, I'm pretty new to cljs development, so if people are getting by well without using the js components of bootstrap, I can do my best to avoid it.
side question: If someone were to really want the js components to react bootstrap, would it make sense to try to generate the externs for it?
you should be able to specify the exclusion, there must be a typo in your project.clj I think
I ended up downgrading to bootstrap 3 cause I really wanted those js components. Thanks again for your help!
I just have the structure with the reagent component and the properties in a vector, so, it was easy modify the properties in the vector.
This is what I was trying to make work: https://github.com/dashmantech/reagent-toolbox-docs/blob/dev/src/cljs/reagent_toolbox_docs/components/radio_buttons.cljs#L23-L34
@pesterhazy and here you can see it in action: http://reagent-toolbox-docs.dashman.tech/radio-buttons