A minimalistic ClojureScript interface to React.js
max minoS 2021-06-06T14:35:15.070800Z

what would be the equivalent of next/gatsby (server-side rendering/static site generation) for reagent?

lilactown 2021-06-06T16:18:23.072Z

There isn’t a huge community for SSR w/ Reagent. I don’t know of any well-supported projects

lilactown 2021-06-06T16:19:09.073200Z

You can of course compile your CLJS code that uses reagent and run it on Node.js, but most people do not

lilactown 2021-06-06T16:20:34.074800Z

Rum and Fulcro both support JVM SSR, which is more the way Clojure people prefer to go.

max minoS 2021-06-06T16:20:59.075100Z

what about for better SEO?

lilactown 2021-06-06T16:21:03.075300Z

But they don’t have the level of framework (handling routing, complex hydration, blog features, etc.) that Next and Gatsby do.

lilactown 2021-06-06T16:22:08.076800Z

I don’t get the impression that many users of reagent care a ton about SEO. Most of the pages I’ve seen use CLJS and reagent are single page apps

lilactown 2021-06-06T16:22:58.078100Z

At my previous job, we server side rendered our site using reagent, CLJS and Node.js. But it was a non-trivial amount of engineering

lilactown 2021-06-06T16:23:34.078800Z

We did care about SEO and loading fast on smaller devices, so it made the tradeoff worth it

lilactown 2021-06-06T16:24:45.080400Z

I’m not saying it’s impossible! Just responding to the question of if there is an equivalent of Next.js or Gatsby, which makes it super easy to get started with, and the answer is no

lilactown 2021-06-06T16:24:49.080600Z

Or at least, not yet :)