Skip to content

Commit 83a978d

Browse files
dunglastimdorr
authored andcommitted
ServerRendering docs: remove ref to data-react-id (reduxjs#3322)
1 parent 6b7283f commit 83a978d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/recipes/ServerRendering.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ hydrate(
174174

175175
You can set up your build tool of choice (Webpack, Browserify, etc.) to compile a bundle file into `static/bundle.js`.
176176

177-
When the page loads, the bundle file will be started up and [`ReactDOM.hydrate()`](https://reactjs.org/docs/react-dom.html#hydrate) will hook into the `data-react-id` attributes from the server-rendered HTML. This will connect our newly-started React instance to the virtual DOM used on the server. Since we have the same initial state for our Redux store and used the same code for all our view components, the result will be the same real DOM.
177+
When the page loads, the bundle file will be started up and [`ReactDOM.hydrate()`](https://reactjs.org/docs/react-dom.html#hydrate) will reuse the server-rendered HTML. This will connect our newly-started React instance to the virtual DOM used on the server. Since we have the same initial state for our Redux store and used the same code for all our view components, the result will be the same real DOM.
178178

179179
And that's it! That is all we need to do to implement server side rendering.
180180

0 commit comments

Comments
 (0)