👋 I watched the @reactjs server components talk/demo by @dan_abramov and @sugarpirate_ 🚀and these are my takeaways (thread)
1. They are partnering with NextJs ( @vercel) so will probably see it in new version of NextJs (?) if it works out. They stressed several times, that it's still a POC.
(btw @vercel / NextJs also announced they got 40M in funding so they are going in big on all of these things 🥳)
2. A server component is different from server side rendered. The first is some kind of format that is streamed to the browser😳🤯😱and added to the DOM tree as it becomes available. The second, is HTML that gets hydrated, meaning is still waiting for the JS to do the hydration.
More on the difference between server component and Server Side Rendering (SSR) in this great thread by @sugarpirate_ 🙌 https://twitter.com/sugarpirate_/status/1341141198258524163?s=20
3. There’s a `.server.js` and `.client.js` prefix you can add to the files/components.
Components with just ‘.js’ can be imported in either.
You can follow @pietropassarell.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled:

By continuing to use the site, you are consenting to the use of cookies as explained in our Cookie Policy to improve your experience.