Skip to content

Commit

Permalink
Merge pull request #4712 from ereshidov/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson authored Jun 24, 2024
2 parents 005feda + d2c81bd commit d0d0e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/usage/ServerRendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ The first thing that we need to do on every request is to create a new Redux sto

When rendering, we will wrap `<App />`, our root component, inside a `<Provider>` to make the store available to all components in the component tree, as we saw in ["Redux Fundamentals" Part 5: UI and React](../tutorials/fundamentals/part-5-ui-and-react.md).

The key step in server side rendering is to render the initial HTML of our component _**before**_ we send it to the client side. To do this, we use [ReactDOMServer.renderToString()](https://facebook.github.io/react/docs/react-dom-server.html#rendertostring).
The key step in server side rendering is to render the initial HTML of our component _**before**_ we send it to the client side. To do this, we use [ReactDOMServer.renderToString()](https://react.dev/reference/react-dom/server/renderToString).

We then get the initial state from our Redux store using [`store.getState()`](../api/Store.md#getState). We will see how this is passed along in our `renderFullPage` function.

Expand Down

0 comments on commit d0d0e43

Please sign in to comment.