This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-14
Channels
- # beginners (4)
- # boot (2)
- # cider (17)
- # clara (8)
- # cljs-dev (5)
- # clojure (16)
- # clojure-italy (14)
- # clojure-nl (1)
- # clojure-norway (1)
- # clojure-russia (1)
- # clojure-uk (4)
- # clojurescript (8)
- # data-science (19)
- # datomic (4)
- # ethereum (1)
- # events (1)
- # fulcro (15)
- # graphql (4)
- # hoplon (10)
- # jobs (1)
- # mount (1)
- # off-topic (15)
- # parinfer (4)
- # perun (1)
- # portkey (6)
- # re-frame (15)
- # reagent (10)
- # schema (1)
- # shadow-cljs (80)
- # specter (4)
- # test-check (35)
hey, how do you use react libraries in reagent if its package is not available in cljsjs! can anyone help?
@dhirensr1 You can use :>
in Reagent's hiccup forms. Look here for more details: http://reagent-project.github.io/news/news060-alpha.html
ya but how i include the library component in my project? its not available on cljsjs as a package
There are other options, of course. E.g. you could use npm with Leiningen. By I've never tried it.
@dhirensr1 check this guide for a low tech way of doing this https://github.com/pesterhazy/presumably/blob/master/posts/double-bundle.md
@pesterhazy: the library isn't available in cljsjs
@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