Fork me on GitHub
#clojurescript
<
2024-06-14
>
wontheone104:06:14

What would be the alternative of Next.js on the Clojure world? Especially interested in server side rendering (SSR) and static site generation (SSG) in the build time. Does Fulcro have important Next.js features? It is exciting moment for me because I get to choose the tech stack for the new project 😊

wontheone109:06:37

Thank you! Is there a common tool for the static site generation (SSG) in Clojure/CLJS?

p-himik09:06:10

There are a few, you should be able to find them. Can also use https://phronmophobic.github.io/dewey/search.html and #C06MAR553 to search.

1
Rupert (Sevva/All Street)16:06:26

Clojure is great for SSR. Now adays you can create websites that are hard to tell that they are SSR vs client side rendered (ie equally fast and engaging). You can use hiccup (+ related libraries). If you need to add some dynamic features down the line you can just add HTMX and/or _HyperScript (compatible with hiccup - just one line to install).

👍 2
Chris McCormick10:06:13

If you're interested in cljs on the backend (running under Node) it's relatively easy to use Reagent to SSR.

👍 1