This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-24
Channels
- # beginners (61)
- # boot (1)
- # cider (55)
- # cljs-dev (17)
- # cljsrn (1)
- # clojure (31)
- # clojure-india (5)
- # clojure-spec (9)
- # clojure-uk (42)
- # cursive (3)
- # datomic (29)
- # editors (3)
- # fulcro (23)
- # hoplon (2)
- # lumo (12)
- # off-topic (8)
- # pedestal (6)
- # re-frame (3)
- # reagent (8)
- # reitit (23)
- # shadow-cljs (82)
- # specter (14)
- # tools-deps (8)
Hi, I new here (to clojure). I started playing with Reagent. I was wondering if there are any guides or documentation to related to adding npm modules into Reagent project. I tried searching for it, but could not find any. If this is not the correct place to ask please let me know. Thanks.
@prabhath6 see https://github.com/pesterhazy/presumably/blob/master/posts/double-bundle.md https://github.com/pesterhazy/double-bundle and especially https://clojurescript.org/guides/webpack
and for the react interop part https://github.com/reagent-project/reagent/blob/master/doc/InteropWithReact.md
@prabhath6 If you are just playing around and don’t have an existing code base, take a look at the shadow-cljs
build tool. It allows you to just install npm
modules using npm
or yarn
and then use them directly without further configuration. The webpack solution is probably a bit more foolproof in certain cases but it is also more work.
i do not have an existing codebase. i will try out shadow-cljs
. How well does that integrate with reagent.
it works great. it’s not a library: it replaces lein and figwheel. https://shadow-cljs.github.io/docs/UsersGuide.html