Fork me on GitHub
#reagent
<
2021-06-06
>
max minoS14:06:15

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

lilactown16:06:23

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

lilactown16:06:09

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

lilactown16:06:34

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

max minoS16:06:59

what about for better SEO?

lilactown16:06:03

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

lilactown16:06:08

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

lilactown16:06:58

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

lilactown16:06:34

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

lilactown16:06:45

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

👍 8
lilactown16:06:49

Or at least, not yet :)