Skip to content

Commit

Permalink
[docs] Fix use of deprecated React API (#42118)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed May 10, 2024
1 parent 5d3bc83 commit 7982975
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -2,7 +2,7 @@

<p class="description">The most common use case for server-side rendering is to handle the initial render when a user (or search engine crawler) first requests your app.</p>

When the server receives the request, it renders the required component(s) into an HTML string, and then sends it as a response to the client.
When the server receives the request, it renders the required component(s) into an HTML string and then sends it as a response to the client.
From that point on, the client takes over rendering duties.

## Material UI on the server
Expand Down Expand Up @@ -208,7 +208,7 @@ function Main() {
);
}

ReactDOM.hydrate(<Main />, document.querySelector('#root'));
ReactDOM.hydrateRoot(document.querySelector('#root'), <Main />);
```

## Reference implementations
Expand Down

0 comments on commit 7982975

Please sign in to comment.