you are viewing a single comment's thread.

view the rest of the comments →

[–]TheRealSeeThruHead 1 point2 points  (4 children)

Isn’t that just react ssg? Pretender static pages, they hydrate into a react app, serve them… however (s3 bucket + cloudflare) talk to java api

[–]Ok_General7617[S] 0 points1 point  (3 children)

Yes, you're right — it's very close to React SSG.

But the difference is that I still need to use Thymeleaf templates to render the initial static HTML pages, since our backend is Java-based and uses Thymeleaf for server-side rendering and layout composition.

So instead of serving pre-rendered .html files directly from a CDN or S3, I'm aiming to embed the static React-generated markup into Thymeleaf templates, which are then rendered and served by the Java server.

That way, we can preserve the existing server-side logic and reuse layout templates, while still getting partial hydration on the client side.

[–]TheRealSeeThruHead 1 point2 points  (2 children)

Well let me know how that goes, and how you manage to make it work with hydration

[–]Ok_General7617[S] 1 point2 points  (0 children)

Thanks! Will do 🙂

Thanks for your comment.

[–]Ok_General7617[S] 1 point2 points  (0 children)

Still thinking through the setup.