I deployed a react app with a Home page, and some other pages.
On the Home page, i have a class named HomeTitleContainer
to display a certain style.
When I do this on index.js
:
ReactDOM.render(<React.StrictMode><App /></React.StrictMode>, rootElement);
I got a normal rendering.
But when I used hydrate()
instead of render()
like this :
ReactDOM.hydrate(<React.StrictMode><App /></React.StrictMode>, rootElement);
I have all my pages contained in a container with HomeTitleContainer
style, which never appeared before this modification.
I used hydrate()
because i would like to improve SEO because with reactJS Google doesn't see any of our pages otherwise...
Can anybody help me on that please ?