server-components-demo icon indicating copy to clipboard operation
server-components-demo copied to clipboard

Integrate SSR

Open sviridoff opened this issue 2 years ago • 1 comments

Hi! I am interested in learning the appropriate strategy to use RSC in combination with SSR. Currently, I am attempting to hydrate the DOM with the result of the RSC, but I am encountering an error that mismatches the result. I am not sure if the strategy I am attempting is correct or not. Could you please provide some guidance? To illustrate the issue, I have created a demo project, which you can find here: https://github.com/sviridoff/rsc-webpack-swc-fastify-demo. As you can see, I have hardcoded the result of the RSC directly in the HTML file here: https://github.com/sviridoff/rsc-webpack-swc-fastify-demo/blob/main/public/page.html. Here is how I am attempting to hydrate it: https://github.com/sviridoff/rsc-webpack-swc-fastify-demo/blob/main/src/bootstrap.tsx#L15

sviridoff avatar Apr 24 '23 14:04 sviridoff

https://github.com/reactjs/server-components-demo/blob/95fcac10102d20722af60506af3b785b557c5fd7/CODE_OF_CONDUCT.md

nguyenpham00 avatar Dec 26 '23 02:12 nguyenpham00