reagent

A minimalistic ClojureScript interface to React.js http://reagent-project.github.io/
2021-06-05T11:12:41.066900Z

Is it possible to export a reagent component so that a JS project interprets it as a react component? :)

arttuka 2021-06-05T11:20:53.067600Z

it is, but the problem is that your exported component is going to include most of clojurescript core, for example, so it's going to be quite big

arttuka 2021-06-05T11:22:09.068200Z

at least shadow-cljs lets you make a build that creates a commonjs or es module

juhoteperi 2021-06-05T12:08:29.068800Z

Check reactify-component. Shadow-cljs is indeed easiest tooling for this (https://shadow-cljs.github.io/docs/UsersGuide.html#target-node-library) but there are non-reagent related tradeoffs.