server-components-demo
server-components-demo copied to clipboard
Integrate SSR
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
https://github.com/reactjs/server-components-demo/blob/95fcac10102d20722af60506af3b785b557c5fd7/CODE_OF_CONDUCT.md