Skip to content

Commit

Permalink
[docs] Fix use of deprecated React API
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed May 3, 2024
1 parent 728e2d8 commit 8272464
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
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 8272464

Please sign in to comment.