Fork me on GitHub
#reagent
<
2017-10-14
>
dhirensr109:10:51

hey, how do you use react libraries in reagent if its package is not available in cljsjs! can anyone help?

p-himik09:10:08

@dhirensr1 You can use :> in Reagent's hiccup forms. Look here for more details: http://reagent-project.github.io/news/news060-alpha.html

dhirensr109:10:54

ya but how i include the library component in my project? its not available on cljsjs as a package

p-himik09:10:58

There are other options, of course. E.g. you could use npm with Leiningen. By I've never tried it.

dhirensr110:10:09

@pesterhazy: the library isn't available in cljsjs

mikerod20:10:41

@dhirensr1 if you can get the complete source as a js file then the :foreign-libs option is a straightforward approach - as @p-himik mentioned above

mikerod20:10:29

you’d typically just put that source somewhere in your leiningen accessible file path of the project.