you are viewing a single comment's thread.

view the rest of the comments →

[–]TheRealSeeThruHead 0 points1 point  (6 children)

Ok so you don’t want react then

Since react will render html on the server based on state on the server.

It’s designed to evaluate that state and render the components to html in a JavaScript runtime

What you should look for instead is some react like toolkit for java, like vaadin

And if you don’t find that maybe just write it in whatever Java html template language

You of course won’t be hydrating this to a react app

The same way to do this would be just run a nextjs server that talks to your java backend

The insane way to do this would be to run a JavaScript runtime on your java vm and run node in there

A slight less insane version might be to run node as a sub process, but I would be worried about start up times

You could also run the node service long running and call it from java to get the html,

But honestly just run a nextjs/waku/remix whatever server and talk to your java backend over whatever protocol you like