react-universally
react-universally copied to clipboard
SSR benchmarks
https://github.com/Aweary/ssr-benchmarks
Interesting. Keep an eye on this. preact looks to be awesome in SSR perf.
https://twitter.com/dan_abramov/status/808813191383879680
https://twitter.com/aweary/status/809107792036446208
If performance matters to you then preact is the way.
We need to get a full preact branch going.
I'm having some issues trying to make preact working with React Router v4, but I hope to find some hacky way to glue those two together this weekend.
We may have to look at alternatives in terms of the router.
We can solve the SSR slow render times for React, with caching, for example: https://github.com/electrode-io/electrode-react-ssr-caching
That is super cool @maximblack! Thank you. I love it's pragmatic approach of profiling and then configuring. Great to have the props call in too.
There are tons of considerations when optimising your app for SSR. It would be great to get a readme section going for it.
Another great resource on this subject: https://github.com/walmartlabs/react-ssr-optimization
Just something to look forward to regarding SSR improvements:
https://github.com/facebook/react/issues/6420
More specifically Dan's comment https://github.com/facebook/react/issues/6420#issuecomment-260322106
@elodszopos That is all very vague unfortunately. It's a pity that ssr is not high on the priority list of the core team 😞
@elodszopos @codepunkt
React Fiber is definitely going to help! :) I am very much looking forward to it.
Here is a great video in which Dan and Andrew explain React Fiber really well.
https://www.youtube.com/watch?v=N3zh4jBaCeQ
caching is still slow, it takes 20ms-30ms still after caching which is chocking the server because it's sync and not async rendertostring @maximblack had any tips for that?
Another interesting addition...
https://github.com/FormidableLabs/rapscallion
@voidale ensure that NODE_ENV=production on server else you get development edition of react running for SSR renders.