Fork me on GitHub
#reagent
<
2018-02-18
>
pablore15:02:27

How do you deal with using npm packages with reagent? There are tons of react libs i want to use that are not in cljsjs. I tried this blog post but is not working for me http://blob.tomerweller.com/reagent-import-react-components-from-npm Maybe because I’m using re-frame lein template instead of reagent’s?

justinlee16:02:00

@pablore if you are doing this a bunch, use shadow-cljs. you just install with npm then import it directly into your source using a normal namespace. join #shadow-cljs if you go this route

justinlee16:02:41

otherwise, the way to do this is to grab a UMD build and use the :foreign-libs compiler option

pablore20:02:43

thanks @lee.justin.m, been all afternoon building with shadow-cljs and is working great