What is mind boggling to me about @acdlite's latest talk on streaming SSR is the idea of JS running on the server controlling the behaviour in a browser on the fly, inside the scope of a single html request.
What time is it? RANT TIME.
You know what really pisses me off? Goddamn REACT, that's what. I've been working with React for the last few years, and it's the most BORING piece of technology EVER and it's ruining the fun of being a UI developer.
A thread. 👇
"The Testing Trophy" 🏆
A general guide for the **return on investment** 🤑 of the different forms of testing with regards to testing JavaScript applications.
- End to end w/ @Cypress_io ⚫️
- Integration & Unit w/ @fbjest 🃏
- Static w/ @flowtype 𝙁 and @geteslint ⬣
ALT Shapes from top to bottom: End to end (triangle), Integration (hexagon), Unit (trapezoid), and Static (trapezoid)
How React Suspense might impact server-side rendering: @EphemeralCircle sets the stage in his latest post 👏
Emoji TL;DR: 🤔🤔🤯😍😍💯💯
👉 spectrum.chat/thread/f1db848…
I just realized that ReactDOMServer does not use the reconciler at all and is its own totally separate implementation. That puts the efforts required to bringing React Suspense to SSR in a whole new light..
There it is, the big reveal I have been speculating about. Just read async data in render as if it exists, React will take care of suspending the render of that component until the data is available.
So far all the changes we have been seeing in the form of an async reconciler, lifecycles being marked as unsafe, fragments, a new context etc seem like somewhat disconnected improvements. I wonder if we are going to see the bigger vision driving these changes next week?
Something seriously big is brewing in React-land. Twitter is full of rumours, whispers and teasing from the core-team. I’m feeling like a kid the week before christmas, only this time christmas is JSConf Iceland end of next week.
At the beginning of the week I never thought this codebase would look and feel modern in just a week. Now I'm glad I resisted the urge to rewrite/migrate functionality to a new repository step-by-step and instead upgraded in place.
Codemods with jscodeshift is an absolute saviour! After replacing a whole bunch of mixins manually the rest of the code literally rewrote itself and we are now at React 16.2 with ES6-style imports/exports.