@types/xxxx package and had problems.Definitions by: in index.d.ts) so they can respond.Hello,
react-dom@16 introduces new hydrate() and other APIs. deprecates existing render() API.
Therefore, @types/react-dom need to apply react-dom@16's new changes.
Thank you.
I had the same problem. I want to use "createPortal" method but doesn't exists in @types/react-dom 15.5.5
Looks like some work started here (https://github.com/DefinitelyTyped/DefinitelyTyped/pull/18453) but stalled.
renderToNodeStream is the method I'm looking to use
@cheerun a small correction, render() API is not deprecated, it's just that new hydrate() API is explicitly introduced to SSRed Apps.
Hydrating a server-rendered container now has an explicit API. If you're reviving server-rendered HTML, use ReactDOM.hydrate instead of ReactDOM.render. _Keep using ReactDOM.render_ if you're just doing client-side rendering.
@harshes53 Oh, Thank you for correction!
There is a PR about this issue: #20065
@christian-schulze Waiting for the automatic publishing. Docs say it should be up within 24 hours of push
It's available now. You can see a working example here: https://github.com/styfle/react-server-example-tsx
Can confirm. We've now upgraded our app to react 16 with no type errors 馃憤
Most helpful comment
There is a PR about this issue: #20065