This Week In React #104: Zag, Next.js, Remix, Ultra, ClickToComponent, Tilg, Component Party, Expo, Skia, TypeScript...
Tags: react, reactnative, typescript, javascript
Published: 2022-05-04 08:21:49

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

Lots of links this week!

The newsletter is late due to Twitter technical issues on the [Twitter thread](https://twitter.com/sebastienlorber/status/1521753171282075650?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter). Hopefully I was able to publish it now. I'd really appreciate a [retweet](https://twitter.com/sebastienlorber/status/1521753171282075650?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter) 🙏 the issues didn't help giving it a good start.

Great news for Next.js: a router upgrade has just been announced!

React-Native is also in the spotlight this week, with 0.69 in RC, Expo SDK 45 and React-Native-Skia 👌

⚠️ There will be no edition for the next 2 weeks. Next one will be May 24th.

🙏 **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

[**Click To Component**](https://github.com/ericclemmons/click-to-component?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

New very practical lib, which allows to easily open the source file of a React component, with a simple `Option + Click` on the interface. Supports CRA, Next.js, Vite... Only works with VS Code, but other IDEs could be supported, like [Intellij](https://github.com/ericclemmons/click-to-component/pull/35?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter).

[**Zag**](https://zagjs.com/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

Zag is a collection of primitive components based on state machines. This makes it possible to decouple the logic from the framework, and to offer a binding for React, Vue, Solid... This new solution will allow the React [Chakra UI](https://chakra-ui.com/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter) lib to be adapted more easily to other frameworks, while sharing a lot more behavior code.

[**Why I don't miss React: a story about using the platform**](https://www.jackfranklin.co.uk/blog/working-with-react-and-the-web-platform/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

Jack has worked at Google on Chrome DevTools for 2 years. Since then, he no longer uses React, and shares his feedback on his transition to standardized web APIs that do not require dependencies: forms, custom elements...

[**Moving from Next to Remix**](https://blog.openreplay.com/moving-from-next-to-remix?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

Kristofer migrated his personal site from Next.js to Remix, for fun. He gives his feedback, and shares the impact on the Lighthouse score. He lists the main changes he had to make: Chakra integration, Link component, routing, data fetching, metadata...

[**How HashiCorp developers iterate faster with ISR**](https://vercel.com/blog/how-hashicorp-developers-iterate-faster-with-isr?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

Feedback on the use of Incremental Static Regeneration from Next.js to reduce build times for documentation sites at HashiCorp. The new "on-demand ISR" mode makes it possible to invalidate the Next.js cache and therefore to give immediate feedback when an update is published.

**Extras:**

-   💡 [Next.js Router Upgrade](https://twitter.com/leeerob/status/1521659624516030466?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): Next.js is going to get nested routes, and a new design to work with Server Components and React 18 features
-   🧑‍🎨 [The 3D design too Spline can now export to React-Three-Fiber](https://twitter.com/splinetool/status/1519739608484954114?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): this can enable you to [make your scenes interactive and add physics](https://twitter.com/Cuadraman/status/1519773758998863876?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   🔗 [Component Party](https://component-party.pages.dev/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): site to easily compare the syntax of React with other frameworks (Vue, Svelte, Solid...) on different use-cases
-   🏢 [Convex](https://www.convex.dev/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): new serverless real-time database with a React binding. They just [raised $27m](https://blog.convex.dev/series-a/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter) and integrates well with [Netlify](https://www.netlify.com/blog/state-management-with-convex/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter) or [Vercel](https://www.youtube.com/watch?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter&v=HrDrcmGHORg)
-   🎥 [The Story of Concurrent React](https://www.youtube.com/watch?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter&v=NZoRlVi3MjQ): 10 minutes on the story bind Concurrent React, from 2016 to today. Great research work
-   📦 [Ultra 1.0](https://ultrajs.dev/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): the modern React meta-framework for Deno just [annonced its v1](https://twitter.com/mutual__respect/status/1516454593718198274?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📦 [React 18.1](https://twitter.com/dan_abramov/status/1519114806376206336?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): mostly bugfixes
-   📦 [useTilg](https://github.com/shuding/tilg?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): convenient React hook for debugging
-   📦 [zustand v4.0.0-rc.1](https://twitter.com/dai_shi/status/1520049919918510080?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📦 [Gatsby 4.13](https://twitter.com/GatsbyChangelog/status/1519033367492182016?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   🐦 [Using useReducer to manage one-way boolean state](https://twitter.com/markdalgleish/status/1521304112738217984?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📜 [Building a Terminal Wordle Game with React Ink](https://spin.atomicobject.com/2022/04/21/terminal-wordle-react-ink/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📜 [Managing React Monorepos with Nx](https://www.youtube.com/watch?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter&v=yNLfMaFhaxM)

## React-Native

[**Expo SDK 45 beta is now available**](https://blog.expo.dev/expo-sdk-45-beta-is-now-available-88507051f6d2?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

The new SDK Expo goes into beta for a week. Some cool new stuff:

-   React-Native 0.68.1: Expo upgrades to the latest version, but without enabling the Fabric renderer yet
-   redesign of Expo Go, with better integration of EAS Update and the ability to see/open branches
-   several libs migrated to JSI and/or [Expo Sweet Module API](https://blog.expo.dev/a-peek-into-the-upcoming-sweet-expo-module-api-6de6b9aca492?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   a brand [new expo CLI](https://blog.expo.dev/new-versioned-expo-cli-cf6e10632656?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter) (beta), that will be versioned and installed locally rather than globally
-   Expo wrapper libs are deprecated: original native libs can be used via config plugins

[**React Native Skia - For Us, For You, and For Fun**](https://shopify.engineering/react-native-skia-shopify?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

Skia is Google's 2D engine, and you most certainly use it: Chrome, Flutter, Android... Shopify supports the development of React-Native-Skia to provide graphics/2D primitives missing from React-Native, and not be limited when implementing a complex design. The lib offers an expressive declarative API, but also an imperative low-level Flutter-compatible API, which could help with web support via React-Native-Web and CanvasKit.

**Extras:**

-   📦 [React-Native 0.69-rc.0](https://github.com/reactwg/react-native-releases/discussions/21?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): first version based on React 18, with the possibility of using concurrent features if you enable the new architecture!
-   📦 [React-Native-Graph](https://github.com/margelo/react-native-graph?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): new graph library with animations, based on React-Native-Skia
-   🎥 [Charts with React-Native-Skia](https://www.youtube.com/watch?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter&v=xeLdmn3se1I): latest video from William Candillon, related to the lib above 😉
-   🐦 [React-Native-WishList preview](https://twitter.com/margelo_io/status/1519021945295151109?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): Marc Rousavy is working on a new powerful virtualized list lib, which should fix the perf shortcomings of the existing ones
-   🎥 [RN.live](https://rn.live/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): Jamon Holmgren's livestream channel
-   🎙️ [RNR 233 - React 18 and the Future of React Native](https://reactnativeradio.com/episodes/rnr-233-react-18-and-the-future-of-react-native?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📜 [Using RevenueCat with Expo's Managed Workflow](https://www.revenuecat.com/blog/using-revenuecat-with-expo?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): shows how easy it is to integrate a native lib into Expo
-   📜 [Twitter going all in on Jetpack Compose](https://android-developers.googleblog.com/2022/04/twitter-going-all-in-on-jetpack-compose.html?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): It still fascinates me so much to know that Twitter uses React-Native on the web, but not React-Native on mobile 😄
-   📜 [Apple Gets Ready to Eliminate Almost 30% of Apps in the App Store](https://appfigures.com/resources/insights/20220429?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): take care, your old app could be unpublished 😅
-   📜 [What is the performance of your users device?](https://blog.bam.tech/developer-news/what-is-the-performance-of-your-users-devices?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   📜 [A performant way to use PouchDB@7 on React Native in 2022](https://dev.to/craftzdog/a-performant-way-to-use-pouchdb7-on-react-native-in-2022-24ej?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

## Other

[**TypeScript Error Translator**](https://ts-error-translator.vercel.app/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

New work-in-progress tool that translates your TypeScript errors into human language, easy to understand, with additional explanations ([source](https://github.com/mattpocock/ts-error-translator?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)). It can even integrate with your IDE ([VS Code extension](https://twitter.com/mpocock1/status/1521145755007922176?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)).

[**Keeping TypeScript Type Guards safe and up to date**](https://dev.to/noriste/keeping-typescript-type-guards-safe-and-up-to-date-a-simpler-solution-ja3?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)

Brings up a problem that I never 😅: if you have a type-guard based on an object attribute, and you add a 2nd attribute, your type-guard becomes stale but TypeScript still compiles.

**Extras:**

-   [Web Scraping via Javascript Runtime Heap Snapshots](https://www.adriancooney.ie/blog/web-scraping-via-javascript-heap-snapshots?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): original scraping technique, which consists of extracting JS objects directly in memory
-   [Node 16.15](https://nodejs.org/en/blog/release/v16.15.0/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): experimental `fetch` support backported
-   [Lerna is now an officially dead project](https://twitter.com/tomasz_ducin/status/1519436453729734657?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter). The project is officially unmaintained, but there are [alternatives like Nx and Turborepo](https://twitter.com/housecor/status/1519653407962894337?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Nx 14](https://twitter.com/NxDevTools/status/1521124174663766018?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter) freshly released
-   [Zaplib post-mortem](https://zaplib.com/docs/blog_post_mortem.html?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter#-zaplib-post-mortem): feedback that demonstrates once again that Rust and Wasm is not always faster than JavaScript
-   [WebAssembly vs Javascript](https://ianjk.com/webassembly-vs-javascript/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter): "don't use WebAssembly primarily for performance"
-   [Detecting UI components with TypeScript Compiler API](https://fwouts.com/articles/previewjs-detecting-components?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Misusing TypeScript Assertion Functions for Fun and Profit](https://v5.chriskrycho.com/journal/misusing-typescript-assertion-functions-for-fun-and-profit/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [SemVer for TS in Practice](https://v5.chriskrycho.com/journal/semver-for-ts-in-practice/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Narrowing Types in TypeScript](https://formidable.com/blog/2022/narrowing-types/?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [google/wireit: upgrades your npm scripts to make them smarter and more efficient](https://github.com/google/wireit?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)
-   [Four Eras of JavaScript Frameworks](https://www.pzuraq.com/blog/four-eras-of-javascript-frameworks?utm_campaign=This%20Week%20In%20React&utm_medium=email&utm_source=Revue%20newsletter)


 <img width="638" alt="CleanShot 2022-05-04 at 10 20 38@2x" src="https://user-images.githubusercontent.com/749374/166645566-bafd28ec-6daf-46fc-bd74-e2e8bbb53718.png">