Fork me on GitHub
#reagent
<
2020-11-20
>
leontalbot00:11:27

Hey you guys, was wondering, is there a reagent like cljs project (react based or not) that have smaller js bundle size?

p-himik02:11:07

What exactly do you mean by "reagent like"?

juhoteperi08:11:59

Reagent might work (but no support) with React compatible libs like Preact or Inferno (through inferno-compat), which save some size. Shadow-cljs allows resolving requires to alternate packages: https://shadow-cljs.github.io/docs/UsersGuide.html#js-resolve

👍 3
juhoteperi08:11:47

Anyway, on one Cljs project React takes 120KB, Clojurescript core 240KB and Closure library 85KB, so replacing React would have that much effect (this app also uses 815KB Openlayers and several other large libs, but they are on separate modules).

👍 3
juhoteperi08:11:47

Anyway, on one Cljs project React takes 120KB, Clojurescript core 240KB and Closure library 85KB, so replacing React would have that much effect (this app also uses 815KB Openlayers and several other large libs, but they are on separate modules).

👍 3