react-server-example-tsx icon indicating copy to clipboard operation
react-server-example-tsx copied to clipboard

React.createFactory() is deprecated

Open styfle opened this issue 5 years ago • 3 comments

Need to figure out a different solution

styfle avatar Mar 02 '20 16:03 styfle

Hi @styfle

Consider this solution: const stream = renderToNodeStream(createElement(App, fetchProps()));

GinMitch avatar Nov 28 '20 09:11 GinMitch

Yep, or change ts to tsx and solve it like this https://github.com/styfle/packagephobia/pull/534

styfle avatar Nov 30 '20 14:11 styfle

Oh my, I've already changed this boilerplate a lot. Used it as a learn-it-yourself tutorial and it works fast as hell.

GinMitch avatar Nov 30 '20 14:11 GinMitch