Fork me on GitHub
#re-frame
<
2019-10-14
>
sandbags14:10:00

Anyone recommend what instructions to follow to use a .js library with re-frame? Most of the instructions seem to assume Figwheel and things seem different with Shadowcljs and, then again, the ClojureScript instructions seem different again. I've had a couple of go's and not seemed to get it. Is there a definitive source of instructions please?

isak14:10:42

@sandbags Which part are you having problems with? Getting the JS library into your build, or actually using the JS component in re-frame?

sandbags14:10:50

I've tried following the instructions of adding to shadow-cljs.edn and using (:require ["/path/to/js[.js]" :as js]) and didn't seem to get anywhere. Also the deps.cljs approach.

isak14:10:53

And you are using shadow-cljs? Then we should switch to #shadow-cljs channel