Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Improve server-rendering, replace render by hydrate #11210

Merged
merged 1 commit into from
May 2, 2018
Merged

[docs] Improve server-rendering, replace render by hydrate #11210

merged 1 commit into from
May 2, 2018

Conversation

Mystraht
Copy link
Contributor

@Mystraht Mystraht commented May 2, 2018

Replace render by hydrate to improve performance when JS client is loaded and avoid deprecation warning from React 16. (Render will be removed in React v17)
I also removed path import which was not used.

Source : https://stackoverflow.com/questions/46516395/whats-the-difference-between-hydrate-and-render-in-react-16

https://reactjs.org/docs/react-dom.html

Using ReactDOM.render() to hydrate a server-rendered container is deprecated and will be removed in React 17. Use hydrate() instead

Replace render by hydrate to improve performance when JS client is loaded and avoid deprecation warning from React 16. (Render will be removed in React v17)
I also removed path import which was not used.
@oliviertassinari oliviertassinari changed the title doc(guides/server-rendering): replace render by hydrate [docs] Improve server-rendering, replace render by hydrate May 2, 2018
@oliviertassinari oliviertassinari added the docs Improvements or additions to the documentation label May 2, 2018
@oliviertassinari oliviertassinari merged commit 45f3c6c into mui:v1-beta May 2, 2018
@oliviertassinari
Copy link
Member

@Mystraht Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants