reagent

A minimalistic ClojureScript interface to React.js http://reagent-project.github.io/
leontalbot 2020-11-20T00:13:27.238100Z

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

juhoteperi 2020-11-20T08:06:59.238900Z

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

1👍
leontalbot 2020-11-20T12:58:17.239800Z

thanks guys

p-himik 2020-11-20T02:09:07.238300Z

What exactly do you mean by "reagent like"?

juhoteperi 2020-11-20T08:06:59.238900Z

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

1👍
juhoteperi 2020-11-20T08:17:56.239400Z

Not sure if it is documented somewhere, but I'm quite sure React can't be used to create html, head or body elements. React render target has to be a element inside body.

leontalbot 2020-11-20T12:58:17.239800Z

thanks guys