Fork me on GitHub

Can someone point me to an example, the equivalent of something like:

class CustomizedAxisTick extends PureComponent { ... bla-bla-bla ... 
done with Reagent?


(defn customized-axis-tick []
  [:h1 "hello"])


@U0G75ARHC unless you were hinting toward something else


I'm trying to recreate this example in Cljs: And I can't make it work


Oh, I think using reagent/as-element worked


yep that will do it

Richard Bowen01:07:51

@thheller I take it font imports are a no go as well for shadow-cljs?


fonts are CSS imports, so no


just use and configure the font you want and use the CSS they give you


Is there something like an observable implementation in Google Closure?


Couldn’t find anything in Closure library

Geoffrey Gaillard13:07:35

I checked a few days ago and couldn’t find anything in the closure library. Missionary ( has observe.


Yeah I found that and it kind of looks promising but somehow the amount of macro-magic worries me haha


probably mostly because I don’t feel like I understand macros all that well 😄

Geoffrey Gaillard14:07:05

Macros should be avoided if possible, but for something like missionary they are inevitable. So they are not a problem 🙂


I’m experimenting with a clojure and clojurescript monorepo. One of the structures ( has a “controller deps.edn” which would contain an alias to run the cljs project app-client . Looks like this:

  {:extra-paths ["test" "target" "tools"]
   :main-opts   ["-m"      "figwheel.main"
                 "--build" "app-client/dev"
I have been able to get most everything working. The last challenge appears to be that when I run the above alias, the CLJS compiler (i’m assuming it’s CLJS) can’t find my node_modules so compiling will fail. Is it possible to teach CLJS where to look for the node_modules ? Figured i’d ask here before I dig into src code. Thanks!!


it's not possible for node_modules to be outside of the source directory (for ClojureScript)


for historical reasons this is the most sound thing to do - because JS has reproducibility issues


while we could allow customization - this is super low priority


Thanks. Makes sense :thumbsup:

Richard Bowen15:07:40

Hey vim users, share your vimrc with me! What plugins, if any, do you use for connect to and evaluate ClojureScript code from a repl? If you do it by hand (start the repl yourself), do share the mechanics.

Braden Shepherdson17:07:05

see the #vim channel!

Braden Shepherdson17:07:22

short answer is Fireplace! I use shadow-cljs and then :Connect 3333 and :CljEval (shadow/repl :my-build)

Drew Verlee23:07:41

Does anyone have any thoughts on I'm playing around with it and it has a lot of restrictions and corner cases. I'm not sure this is avoidable given what its trying to do. Everything I have used in this space has been a bit of a headache.


I generally don’t like this pattern. The relation between CSS and HTML is not hierarchical it is relational and open, N:N. CSS in JS represents a special case, not a general one.


I'm a big fan of styled-components in the javascript spectrum as we keep CSS around still and make it more dynamic. I haven't seen it being used in CLJS in a good way yet and I'm not even sure its possible given CLJS doesn't have template literals


@U0DJ4T5U1 I recently looked into this as well and there’s a few more options you might want to consider: • I eventually just went with plain CSS but I think there’s some situations in which this can be really helpful

Drew Verlee12:07:30

@U01EFUL1A8M thanks for responding. Can you explain why you think this is hierarchical? The main functionality here in thinking of is that it transforms css data on the component into css classes. I was also hoping it would let me compose css like clojure, but given it's use of macros, that isn't the case. E.g the defstlyes macro needs to take a hashmap, not a expression that builds one.

Drew Verlee12:07:36

@U6JS7B99S I'll need to read about template literals. Thanks for the suggestion.

Drew Verlee12:07:48

@U050TNB9F I'll give those a look, thanks.

Drew Verlee12:07:40

At a glance herb looks similar to clj-commons, which is great because it's easier to understand what's possible with two implementations.


Maybe hierarchical is the wrong word. But as I understand it you let the dom structure dominate the styling, which is a common but special case. Or to put it in another way, if the CSS in JS approach let’s you decouple, and think in terms of, a design system, then I‘m all for it.