This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-13
Channels
- # adventofcode (54)
- # aleph (1)
- # announcements (2)
- # aws (123)
- # babashka (1)
- # beginners (41)
- # calva (21)
- # cider (1)
- # clj-kondo (58)
- # cljdoc (4)
- # clojure (123)
- # clojure-austin (1)
- # clojure-belgium (6)
- # clojure-dev (11)
- # clojure-europe (33)
- # clojure-nl (1)
- # clojure-portugal (1)
- # clojure-uk (3)
- # clojurescript (20)
- # community-development (32)
- # conjure (1)
- # datomic (17)
- # etaoin (8)
- # events (1)
- # fulcro (1)
- # hyperfiddle (7)
- # malli (3)
- # nrepl (3)
- # off-topic (17)
- # other-languages (1)
- # polylith (4)
- # portal (7)
- # releases (3)
- # remote-jobs (1)
- # shadow-cljs (18)
- # test-check (24)
- # testing (3)
- # timbre (1)
- # xtdb (7)
What is the difference between including a library in shadow-cljs.end
or package.json
if I can to use both sources to require a lib in my cljs file?
For exampel clojars hub has react
lib and npm hub has it too
I wouldn't use the Clojars version of React. Someone has to maintain it, probably someone who's not involved with React itself. CLJSJS is not something you need today. It can easily be outdated or missing some required externs. Pretty much always it's better and simpler to use the NPM version.
So you prefer to use only NPM and use shadow-cljs
only to compile cljs->js ?
or I dont understand your: > CLJSJS is not something you need today
I myself - yes. But you don't have to use shadow-cljs. AFAIK Figwheel works with NPM too. Maybe other tools, but I don't use them so can't really tell.
hmm I thought shadow-cljs
is a basic frontend compile tool for clojurescript on production apps
So you dont use it in your commercial apps and use figwheel?
yes, you can use shadow-cljs for everything. there is no special license for commercial projects or whatever
what p-himik meant is that there is a 3rd party effort called "cljsjs" which provided npm packages in a way they could be accessed over clojars
I see now, thanks
So I just use cljs related packages (like reagent, re-frame etc) via shadow-cljs and other (react, testing-library etc) via mom right ?