Fork me on GitHub
#react
<
2022-04-27
>
orestis06:04:57

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?

orestis06:04:37

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

Roman Liutikov11:04:25

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

lilactown21:05:16

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

lilactown21:05:39

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