react 2022-04-27

Has anyone tried doing React SSR from within a JVM ScriptEngine eg with Graal.js? They claim to be node compatible so it should work in theory?

In the sense that you'd generate a dedicated bundle with CLJS and load/run that to render an HTML file.

should work fine, unless there's something specific to Node in ReactDOMServer

I think the new renderToPipeableStream relies on some Node.js stuff, not sure if it's replicated in Graal.js

if Graal.js implements WebStreams then you could use renderToReadableStream()