paypal / react-engine

a composite render engine for universal (isomorphic) express apps to render both plain react views and react-router views
Apache License 2.0
1.45k stars 130 forks source link

Use ReactDOM.hydrate() in React 16+ #201

Closed laurenskling closed 6 years ago

laurenskling commented 6 years ago

ReactDOM 16 introduced hydrate() to attach to server side rendered content. Using render() to do this will be deprecated in React 17.

https://reactjs.org/docs/react-dom.html#hydrate https://github.com/paypal/react-engine/blob/0aeb13300da152a166cc01c06531f9ef197172ca/lib/client.js#L129

jonathansamines commented 6 years ago

I think this was solved at #203

laurenskling commented 6 years ago

It looks like it!