This Week In React #100: React 18, React-Native 0.68, Redwood 1.0, Remix, Next.js, R3f v8, TC39, Node Test Runner, Hydration...
Tags: react, reactnative, javascript, typescript
Published: 2022-04-06 08:15:06


---
series: This Week In React
---
Hi everyone!

Lots of things happened during my ski holiday 😅

We cover React 18, React-Native 0.68, and 2 weeks of full of news.

Short intro, no more space in the email 😄 we'll party another time to celebrate the 100th edition 🤪

🙏 **Support the newsletter:**

-   😘 **Recommend it to your friends**: it really helps!
-   💸 [**Sponsor This Week In React**](https://gist.github.com/slorber/cb732fb5d0a002c4d73236a9baeba7bb?utm_campaign=thisweekinreact&utm_medium=email&utm_source=Revue%20newsletter)
-   😍 [**Write testimonials on Twitter**](https://twitter.com/sebastienlorber/timelines/1448942785814466561?utm_campaign=thisweekinreact&utm_medium=email&utm_source=Revue%20newsletter)
-   🧵 [**Retweet the latest Twitter thread**](https://slo.im/thread?utm_campaign=thisweekinreact&utm_medium=email&utm_source=Revue%20newsletter)
-   📨 Reply to this [**email**](mailto:lorber.sebastien@gmail.com?utm_campaign=thisweekinreact&utm_medium=email&utm_source=Revue%20newsletter): feedback is welcome
-   👥 Follow on [**LinkedIn**](https://www.linkedin.com/company/this-week-in-react/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

If you like this newsletter, subscribe in priority there:

-   🇬🇧 [ThisWeekInReact.com](https://thisweekinreact.com/)
-   🇫🇷 [ReactHebdo.fr](https://reacthebdo.fr/)


[![](https://user-images.githubusercontent.com/749374/153181021-8fdb0ece-270a-4cf2-980b-4557d04316ad.png)](https://thisweekinreact.com)

## React

[**React v18.0**](https://reactjs.org/blog/2022/03/29/react-v18.html?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

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 (`useId`, `useDeferredValue`, `useTransition`...)

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.

These concurrent features can be used today, but are mainly intended to be encapsulated inside a library or a framework (integrations planned in [Remix](https://twitter.com/mjackson/status/1508848619700600837?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter), [Next.js](https://twitter.com/timneutkens/status/1508846833304543233?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)...).

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](https://twitter.com/reactjs/status/1509729057541341184?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter).

Bottom Line: **React 18 lays a new foundation**, and most innovations are yet to come. Dan Abramov even calls this release an [MVP](https://twitter.com/dan_abramov/status/1509008072550846464?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter) whose goal seems to essentially facilitate the gradual adoption of Concurrent React. Some like [Paul Henschel](https://twitter.com/0xca0a/status/1508850096447840256?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter) (React-Three-Fiber) or [James Ide](https://twitter.com/JI/status/1508849489305432066?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter) (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](https://svelte.dev/blog/virtual-dom-is-pure-overhead?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter), 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.

[**RedwoodJS v1.0**](https://community.redwoodjs.com/t/redwood-1-0-is-now-available/2958?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

It's [Launch Week](https://v1launchweek.redwoodjs.com/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter) 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](https://tom.preston-werner.com/2022/04/04/redwood-v1-and-funding.html?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter) in a sustainable way (no VC)

[**Remixing React Router**](https://remix.run/blog/remixing-react-router?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

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"](https://17.reactjs.org/docs/concurrent-mode-suspense.html?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter#approach-3-render-as-you-fetch-using-suspense) pattern.

**Extras:**

-   📜 [Remix: The Yang to React's Yin](https://kentcdodds.com/blog/remix-the-yang-to-react-s-yin?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📜 [Improving Web Page Performance at DoorDash Through Server-Side Rendering with Next.JS](https://doordash.engineering/2022/03/29/improving-web-page-performance-at-doordash-throughserver-side-rendering-with-next-js/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): great feedback of a complex migration at scale
-   📜 [Hooks Considered Harmful](https://labs.factorialhr.com/posts/hooks-considered-harmful?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📜 [When Does React Render Your Component?](https://www.zhenghao.io/posts/react-rerender?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📜 [SSR Date Formatting in Remix using the User's Locale](https://donavon.com/blog/remix-locale?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📜 [How Does Shallow Comparison Work In React?](https://www.chakshunyu.com/blog/how-does-shallow-comparison-work-in-react/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📜 [Trying out Ladle - A Storybook Alternative](https://dev.to/mbarzeev/trying-out-ladle-a-storybook-alternative-f68?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📜 [Why React 18 Broke Your App](https://dev.to/this-is-learning/why-react-18-broke-your-app-4730?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   🐦 React core team: [Brian Vaughn leaves](https://twitter.com/brian_d_vaughn/status/1509558012956102663?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter), [Mengdi Chen enters](https://twitter.com/mengdi_en/status/1508845599340310533?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   🐦 [useId() + React keys?](https://twitter.com/reactjs/status/1510334505252491267?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter) ❌
-   🐦 [useDeferredValue mental model: "like debounce but React decides when to bounce"](https://twitter.com/reactjs/status/1509458435586338821?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   🐦 [JSX && conditionals](https://twitter.com/kadikraman/status/1507654900376875011?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): pitfalls to know! There are ESLint plugins for that ([1](https://twitter.com/radexp/status/1508543569379958787?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter), [2](https://github.com/jeremy-deutsch/eslint-plugin-jsx-falsy?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter))
-   🐦 [Next.js + Partytown "worker"](https://twitter.com/adamdbradley/status/1506333446737739780?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   🐦 [React + Qwik](https://twitter.com/Steve8708/status/1506729726420742145?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   🎥 [The Story of Next.js](https://www.youtube.com/watch?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter&v=BILxV_vrZO0)
-   📦 React-Three-Fiber: [v8.0](https://twitter.com/0xca0a/status/1509179201080995843?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter) (with** React-Native support!**) + [Babel plugin](https://twitter.com/umariomaker/status/1509324799926943744?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📦 [React Router v6.3.0](https://remix.run/blog/react-router-v6.3.0?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): compatibility v5
-   📦 [React Testing Library v13](https://twitter.com/matanbobi/status/1509421450305937411?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📦 [React-Query v4.0.0-beta.1](https://twitter.com/TkDodo/status/1510223448429277188?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📦 [Chicane v1.0](https://twitter.com/zoontek/status/1508434249577373696?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📦 [Gatsby v4.11](https://www.gatsbyjs.com/docs/reference/release-notes/v4.11/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

## React-Native

[**React Native v0.68**](https://reactnative.dev/blog/2022/03/30/version-068?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

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.

The next version of Expo (SDK 45) [should be based on v0.68](https://twitter.com/Baconbrix/status/1509506872071663620?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter), but the new architecture [won't be available immediately in Expo Go](https://twitter.com/Baconbrix/status/1506656896706568198?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter) (but could probably be enabled in custom dev clients)

**Extras:**

-   🐦 [TypeScript moduleSuffixes](https://twitter.com/sebastienlorber/status/1510995344422846470?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): improves integration between TypeScript and React-Native extensions (`Comp.ios.tsx`)
-   🐦 [React Native for Web 0.18 preview](https://twitter.com/ReactWeb/status/1506716803975634945?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📜 [Deep dive into React Native JSI](https://engineering.teknasyon.com/deep-dive-into-react-native-jsi-5fbad4ea8f06?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📜 [Ionic vs. React Native: Performance Comparison](https://ionicframework.com/blog/ionic-vs-react-native-performance-comparison/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📜 [How do you cache FlatList.renderItem?](https://andrei-calazans.com/posts/2022-03-31/memoization-mistake-flatlist-renderitem?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   🎥 React-Native-Skia: [Neumorphism](https://www.youtube.com/watch?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter&v=0FC8O9mRUmg) + [Gen-Z mode](https://www.youtube.com/watch?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter&v=0FC8O9mRUmg)
-   🎙️ [React Native Radio 230 - We React to News](https://reactnativeradio.com/episodes/rnr-230-we-react-to-news?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   🎙️ [React Native Show 12 - Mobile Payments in React Native](https://www.callstack.com/podcasts/mobile-payments-in-react-native?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📦 [Nx Expo Support](https://blog.nrwl.io/introducing-expo-support-for-nx-3fffb1849a6f?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📦 [OneSignal Expo Plugin](https://onesignal.com/blog/our-onesignal-expo-plugin-is-now-available/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📦 [React-Native-Google-SignIn Expo Plugin](https://twitter.com/vonovak/status/1508735715605057541?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

## Other

[**Updates from the 89th TC39 meeting**](https://dev.to/hemanth/updates-from-the-89th-tc39-meeting-5bkf?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

Huge TC39 update! My highlights:

-   Decorators stage 3, on track to finally land!
-   Change Array by Copy in stage 3: immutable methods on JS arrays! Also an [important step](https://twitter.com/r_ricard/status/1509232839719632899?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter) step for [Records & Tuples](https://sebastienlorber.com/records-and-tuples-for-react?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter) to progress.
-   Type annotations stage 1 🤯
-   Intl.MessageFormat in stage 1: could reduce bundle size of apps using React-Intl.

**Extras:**

-   [A Built-in Test Runner Is Coming to Node and Why You Should Care](https://fusebit.io/blog/node-testing-comes-to-core/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): new out-of-the-box test runner in Node.js 18! 🤯
-   [Release Notes for Safari Technology Preview 142](https://webkit.org/blog/12522/release-notes-for-safari-technology-preview-142/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): CSS Container Queries!
-   [From Static to Interactive: Why Resumability is the Best Alternative to Hydration](https://www.builder.io/blog/from-static-to-interactive-why-resumability-is-the-best-alternative-to-hydration?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): interesting model used by Qwik
-   [Announcing Rome Formatter](https://rome.tools/blog/2022/04/05/rome_formatter_release?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [How to Write TypeScript Like a Haskeller](https://serokell.io/blog/typescript-for-haskellers?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Conquering JavaScript Hydration](https://dev.to/this-is-learning/conquering-javascript-hydration-a9f?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [How return await can slow down your code](https://arthur.place/the-cost-of-return-await?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Optimising Core Web Vitals on SPAs](https://simonhearne.com/2022/core-web-vitals-on-spas/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Cache and Prizes - Serious Platforms Don't Play Favourites](https://infrequently.org/2022/03/cache-and-prizes/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [TypeScript Optional variance annotations](https://github.com/microsoft/TypeScript/pull/48240?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [TS Pattern v4.0](https://twitter.com/GabrielVergnaud/status/1508384947928764420?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Boxed: Functional utility types and functions for TypeScript](https://swan-io.github.io/boxed/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Types as comments: Strong types, weakly held](https://blog.logrocket.com/types-as-comments-strong-types-weakly-held/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [The Ultimate TypeScript Thread](https://twitter.com/mpocock1/status/1509964736275927042?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [WebContainers are out of beta in Chromium](https://blog.stackblitz.com/posts/webcontainers-out-of-beta/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Parcel v2.4.0](https://parceljs.org/blog/v2-4-0/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Vite 2.9](https://twitter.com/vite_js/status/1509165446595072001?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Understanding CSS Layout Algorithms](https://www.joshwcomeau.com/css/understanding-layout-algorithms/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Picture perfect images with the modern img element](https://stackoverflow.blog/2022/03/28/picture-perfect-images-with-the-modern-element/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Those HTML Attributes You Never Use](https://www.smashingmagazine.com/2022/03/html-attributes-you-never-use/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Dum: npm script runner in Rust](https://github.com/egoist/dum?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Storybook Figma plugin beta](https://storybook.js.org/blog/figma-plugin-beta/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [What's new in Node.js core? March 2022 edition](https://simonplend.com/whats-new-in-node-js-core-march-2022-edition/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Astro 1.0 Beta Release](https://astro.build/blog/astro-1-beta-release/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [14 Linting Rules To Help You Write Asynchronous Code in JavaScript](https://maximorlov.com/linting-rules-for-asynchronous-code-in-javascript/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Node.js community update](https://developers.redhat.com/articles/2022/03/18/nodejs-community-update?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [GraphQL Yoga 2.0](https://www.the-guild.dev/blog/announcing-graphql-yoga-2?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Electron v18.0](https://www.electronjs.org/blog/electron-18-0?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

<img width="686" alt="image" src="https://user-images.githubusercontent.com/749374/161927657-2ef832ae-28b9-422e-ac7f-9f0603215167.png">