I want server side render in my react project show that google bot can read the content of react project and my site can easily rank
I want code and method how can I do that Server Side Rendering please help me regarding this project
I tried Hydrate Root which is not working in my project
2
Answers
If you want to SSR in your react project.You have to use Next.js library.
Documentation
You have 2 option if you want to SSR in your react project
But i suggest Nextjs is convenient option
for 2 option used express and react-dom-server
this way you can achive
Add the following code to server.js
Enable Hydration on the Client Side