Discover more from This Week In React
This Week In React #100: React 18, React-Native 0.68, Redwood 1.0, Remix, Next.js, R3f v8, TC39, Node.js Test Runner, Hydration, Rome...
React 18 freshly released! This new version offers many improvements and APIs that we have already talked about: automatic batching, SSR streaming, Suspense, selective hydration, new hooks (
This highly anticipated release also features Concurrent React. Rendering is no longer necessarily synchronous and atomic: it can be interrupted, paused and resumed... This allows to cut up the work in small slices with different priorities, and keep the interface responsive.
This new renderer can produce breaking, and will only activate when using the new concurrent features of React 18, which allows for smooth incremental adoption. Upgrading React to v18 should therefore not be too complicated. If your app has problems in dev, it is advised to disable StrictMode.
Bottom Line: React 18 lays a new foundation, and most innovations are yet to come. Dan Abramov even calls this release an MVP whose goal seems to essentially facilitate the gradual adoption of Concurrent React. Some like Paul Henschel (React-Three-Fiber) or James Ide (Expo) already predict the some huge performance impacts.
I think we are entering a new era. Some web frameworks such as Svelte or Solid are becoming popular due to their simplicity and performances. Unlike React, they are truly responsive and virtual DOM free.
React's virtual DOM comes has a cost, but I think Concurrent React can hardly be implemented without this abstraction. With React 18+, we will finally know if this cost is worth being paid. It will be interesting to compare the UX, DX and performances of React against Svelte or Solid in the years to come.
It's Launch Week for Redwood, with v1.0 just released, and another big announcement scheduled for Thursday. This React meta-framework inspired by Ruby on Rails has stronger opinions than its competitors, and can help you ship a product faster with its opinionated integration with Prisma, GraphQL, Storybook, TypeScript, Jest... Its creator, Tom Preston-Werner (also creator of GitHub, Jekyll...) is financing the framework himself with $1M over the next year in a sustainable way (no VC)
The Remix and React-Router repos will merge under the name Remix, and many features present in Remix will be made available in React-Router: data loading, mutations, interrupts, revalidation, race-conditions... These abstractions are thought to work best with Suspense and the "render-as-you-fetch" pattern.
📜 Improving Web Page Performance at DoorDash Through Server-Side Rendering with Next.JS: great feedback of a complex migration at scale
📦 React Router v6.3.0: compatibility v5
Talks on XState, Components or Multicore JS… are only a few! More importantly, non-tech topics such as leadership, DevRel, DX and such will be on the menu.
BeJSconf is also a way to celebrate and have fun; all with relishing some good Belgian fries and beer during the planned after-event party.
Very important release, since it is the first version of React-Native offering to easily activate the new architecture (Fabric and TurboModules) through a flag.
🐦 TypeScript moduleSuffixes: improves integration between TypeScript and React-Native extensions (
💡 Sponsor the newsletter to publish a job offer
Showtime is a decentralized social network ✨ You can think of it as the "Instagram for NFTs" where you can discover and support your favorite artists, create and showcase your digital art collection and soon be rewarded for the value you create. They plan to help artists reward their fans by letting them earn NFTs (instead of having to buy them).
They are using Expo with Expo Application Services. They are iterating as fast as the web3 ecosystem is moving by using React Native and Next.js together thanks to React Native for Web. They built a high-quality universal design system that works on iOS, Android and Web: Universal UI. They are planning to open-source the frontend monorepo very soon.
PS: I used to work with Henry, one of the engineers at Showtime!
Start React Native: learn everything about gestures and animations with William Candillon
Adventures in Nodeland: Matteo writes about his journey as a Node.js TSC member and maintainer of 500+ modules on npm, including Fastify and Pino!
TypeScript Weekly: the best TypeScript links every week, right in your inbox
Tailwind Weekly: all things Tailwind CSS, new issue every Saturday
G2i: pre-vetted remote React & React-Native developers you can trust on contract or full-time basis
Infinite Red: US React-Native experts making your idea a reality
Software Mansion: the co-creators of React Native and the technological core of many tech companies
Huge TC39 update! My highlights:
Decorators stage 3, on track to finally land!
Type annotations stage 1 🤯
Intl.MessageFormat in stage 1: could reduce bundle size of apps using React-Intl.
A Built-in Test Runner Is Coming to Node and Why You Should Care: new out-of-the-box test runner in Node.js 18! 🤯
Release Notes for Safari Technology Preview 142: CSS Container Queries!
From Static to Interactive: Why Resumability is the Best Alternative to Hydration: interesting model used by Qwik