Hi everyone!
I (Seb) am back, and happy to share that the newsletter crossed 40 000 subscribers! ๐
Thanks for your support and for sharing the newsletter with your friends.\
Any idea to make it even better, share feedback, or submit a link? Just reply to this email!
This week the React 19 stable release that we expected very soon is delayed a bit due to a controversial change in how Suspense behaves.
On the React Native side, the first RC of 0.75 is expected very soon, running under React 19.
๐ก Subscribe to the official newsletter to receive an email every week!
๐ธ Sponsor
The Category-Defining React Grid for Your Enterprise
Data grids are complex components of web applications, but current solutions are inefficient, require a lot of maintenance, and perform poorly. Graphite Grid transforms the landscape with two key features: retargetable rendering and reactive signal state.
Graphite Grid separates grid state from view logic, allowing a single unified state model to support a variety of render targets, declaratively or imperatively. It includes a DOM and Canvas renderer, giving developers flexible, high-performance options ๐.
Graphite Grid is declarative and consistent, leveraging state signals to ensure seamless integration with your application. Designed with React in mind, it is the only JavaScript data grid built with React's state management primitives. Try it now!
โ๏ธ React
React 19 and Suspense - A Drama in 3 Acts
React 19 RC.0 was released 2 weeks ago and could have become the React 19 stable release we've been waiting for. Unfortunately, it contains a controversial change to the Suspense behavior, leading the React team to talk and decide to delay the release until a solution is found.
Unlike React 18, in v19 if a component suspends, its siblings won't render anymore, leading to potential waterfalls. In many situations (using โfetch-on-renderโ pattern, using React.lazy()...), async code might run sequentially instead of in parallel. Thereโs a good reason motivating this change: the ability to display Suspense fallbacks sooner, and avoid rendering components uselessly. In theory, waterfalls could be avoided if requests were โhoistedโ at the router level (using the โrender-as-you-fetchโ pattern), but many existing apps do not do that and would suffer from degraded performances.
Related resources:
- ๐ How React 19 (Almost) Made the Internet Slower
- ๐ React 19 Issue - Disabling prerendering siblings of suspended components breaking common pattern
- ๐ฅ Jack Herrington - Big Suspense Changes in React 19: Explained In Code
- ๐ฅ Josh tried coding - React 19 has a Problem
React Internals Explorer - easily see how React works
A new interactive playground to see how React works under the hood. Itโs possible to explore internals step-by-step. You can even select the React version, and itโs particularly relevant for todayโs issue because it can show the Suspense behavior difference between React 18 and React 19!
- ๐ธ Meilisearch - Build search-as-you-type for React
- ๐ React Core PR - Badge Environment Name on Thrown Errors from the Server: A convenient DX improvement to know where the error comes from thanks to a [server] console badge.
- ๐ฆ React Router 7 - Ryan Florence Sneak Peek video
- ๐๏ธ The Geek Conf - ๐ฉ๐ช Berlin - 18 & 25 July - Get a 10% discount with code "TWIR". Tomasz Sapeta (Expo/Software Mansion), Carmen Huidobro (DevCraft Academy), and Atila Fassina (CrabNebula) will speak !
- ๐ dotJS - ๐ซ๐ท Paris - June 27 - Just 1 week left before the conference! 10% discount with code "TWIR"
- ๐ Codemod partnering with the React team: The Codemod company is partnering with React to maintain the react-codemod repo and help us upgrade to React 19.
- ๐ Future of Astro series - Zero-JS view transitions, Astro Content Layer, and Server Islands: Astro betting on new browser features like cross-document view transitions makes us question the need for client-side routing and SPAs. I hope theyโll figure out how to persist component state across navigation in this new mode. They also plan to improve their (CMS integration, composable, using LibSQL) and provide a new โserver:deferโ directive (similar to Suspense, but not using streaming).
- ๐ Demystifying INP: New tools and actionable insights: Vercel CTO explains that the new Core Web Vital INP (Interaction to Next Paint) is a misleading metric. Surprisingly preloading data can even give you a lower INP score. Using a React example from the Next.js docs site (js/ts code block language picker), he explains that user input must be acknowledged within 200ms. He suggests using either his package โawait-interaction-responseโ or React transitions to separate user input handling from rendering the meaningful result.
- ๐ Experimenting with React Server Components and Vite: A quite advanced article recreating a RSC setup with Vite from scratch. Very useful resource for framework authors looking to support RSCs. All this work to run a blog for your cat Dan ๐.
- ๐ How to compose JavaScript functions that take multiple parameters: Shows how to use a compose() function with React useState, among other things that will interest functional programming enthusiasts.
- ๐ React Form with Loading State (Pending Action): Shows 3 possible ways to can get the loading state of a form, using useActionState, useFormStatus and useTransition.
- ๐ Redwood โLove reloaded" - A DX Story: Redwood briefly explains the tradeoffs of 3 instant feedback mechanisms. For their RSC experience, theyโll start by shipping live reload, and plan to implement fast refresh later.
- ๐ Using React Query with Astro: Using nanostores instead of React Context.
- ๐ Next.js Server Actions with next-safe-action: The library handles typesafety and input validation (with zod).
- ๐ Hybrid i18n with Next and Astro - 4-part series
- ๐ Write SOLID React Hooks
- ๐ Full Stack Web Push API Guide - Add push notifications to Remix Indie Stack
- ๐ฆ React DevTools 5.3 - Dim StrictMode extra console logs, fixes and refactors
- ๐ฆ Vercel AI SDK 3.2: you can now build generative UI chatbots client-side with just useChat() and streamText in your React projects
- ๐ฆ Reassure 1.0 - Performance testing companion for React and React Native
- ๐ฆ Fumadocs 12 - Documentation framework for Next.js
- ๐ฆ react-distributed-components - Effortlessly compose client and server components
- ๐ฆ tscircuit - Design Electronics with React & AI
- ๐ฆ Relay 17.0
- ๐ฆ Sonner 1.5 - Toast library - x3 smaller and many other improvements
- ๐ฆ Remix Privacy Stack - Indie Stack + GDPR/CCPA flows + self-hosted
- ๐ฅ Delba - Next.js: Authentication (Best Practices for Server Components, Actions, Middleware)
- ๐ฅ Jolly Coding - Why You Should Use React Aria Components
๐ธ Sponsor
Join The React Native Performance Optimization Course
No App Can Be A Patchwork Planet
So if you want to react well to its performance bottlenecks, you need to understand their origins.
This live training program will help you solve optimization mysteries based on a data-driven approach called DMAIC ๐ต๏ธ
5 Interactive Modules, 3 Seasoned React Native Experts, and 1 Future-Proof Framework that will nurture your development lifecycle holistically.
Want to join the mission? ๐ Sign up for the waiting list today and mark your calendar for July 9-10!
๐ฑ React-Native
This section is authored by Benedikt.
As there is no โbig headline newsโ this week, I want to take the opportunity to celebrate two projects within the React Native community. The team behind React Native visionOS received the React Open Source Award in the category โMost Exciting Use of Technology,โ and the team at Infinite Red released the 300th episode of the React Native Radio podcast this week. Congratulations to both teams and thank you for the work you all do for our community!
- ๐ธ WithFrame - Pre-Built React Native Components
- ๐ฆ React Native visionOS receives React Open Source Award: Congratulations!
- ๐ฆ New React Native IDE beta with speed improvements
- ๐ React Native 0.75 PRs - bump dependency to React 19
- ๐ React Native PR - requestIdleCallback : Schedule background and low-priority work on the main event loop.
- ๐ Expo Docs - React Compiler - Available from Expo SDK 51: Still experimental, of course.
- ๐ Chain React Conf - ๐บ๐ธ Portland, OR - July 17-19. The U.S. React Native Conference is back with engaging talks and hands-on workshops! Get 15% off your ticket with code โTWIRโ
- ๐ Infinite Red maintains a list of the Top React Native Apps: I didnโt know Burger King and Pizza Hut apps were built with RN. If you know of a great app that should be on that list, you can nominate it - even if itโs not a fast food chain!
- ๐ Reanimated Can Block Your JS Thread: Yes, you can shoot yourself in the foot when using shared values, this is a good reminder to evaluate whether a value needs to be a Shared Value.
- ๐ Testing Expo Web3 Apps With Wagmi and Anvil: Even if youโre like me and instantly fall asleep when you hear the word Web3 these days, this article is a good example walkthrough of different aspects of testing, including mocking.
- ๐ Baseball + React Native = Success: I love seeing apps built with RN that are a bit unusual (and not just consist of lists of records). This is an example of such an app for the FlexPro Grip, a device that Baseball players use to train their grip.
- ๐ Bringing native AI to your mobile apps with ExecuTorchโ part I โ iOS
- ๐ฆ react-navigation-bottom-sheet: Iโm a big fan of @gorhom/bottom-sheet, this new library integrates it with React Navigation.
- ๐ฆ react-native-screens 3.32.0 - Back button display mode on iOS, navigationBarTranslucent prop on Android
- ๐ฆ react-native-config 1.5.2 adds visionOS support
- ๐ฆ react-native-gesture-handler 2.17.0
- ๐๏ธ RNR 300 - Special Episode: Ask Us Anything!
- ๐๏ธ Rocket Ship 43 - React Native Best Practices Template with Youssouf El Azizi
- ๐ฅ notJustโคdev - Building an e-Scooter App with React Native and Mapbox
- ๐ฅ Simon Grimm - 5 React Native Tips to Wow Your Users
- ๐ฅ Baptiste Devessier - XState at Expo: TIL that Expo Updates uses XState.
๐ Other
- ๐ฃ Updates from the 102nd TC39 meeting - Promise.try, isError, Discard Bindings, RegExp.escape, Iteratorsโฆ
- ๐ CSS Conditionals (if) on Custom Properties
- ๐ Introducing Drizzle
- ๐ Node.js is Here to Stay
- ๐ The latest in CSS and web UI: I/O 2024 recap
- ๐ Using Arktype in Place of Zod - How to Adapt Parsers
- ๐ Blazing Fast Websites with Speculation Rules
- ๐ฆ Node 22.3 - Snapshot testing, module mocking (experimental), fs.cp() stable
- ๐ฆ htmx 2.0
๐คญ Fun
See ya! ๐