Hi everyone!
This week React Native takes the spotlight! But there are also interesting news from Vercel and PRs to take a look at from the React core team.
Earlier this week, I was at React/RN Connection conferences in Paris. It was great to meet some of you there!
The Parisian party is not over. After many years, the great dotJS conference is back in Paris on June 27. They already announced great speakers, including Mark Dalgleish, Malte Ubl, Charlie Gerard, James Q Quick, Ben Lesh... Last regular tickets available, get a 10% discount with my code "TWIR".
Due to the conf, I only had today to work on the newsletter. Thankfully my co-author Benedikt took over and did most of the work this week! ๐
Next week, the newsletter takes a well-deserved break. We'll be back on May 8.
๐ก Subscribe to the official newsletter to receive an email every week!
๐ธ Sponsor
A newsletter helping build your product skills
Product for Engineersย is PostHogโs newsletter dedicated to helping engineers improve their product skills. Learn what questions to ask users, how to build new features users love, and the path to product market fit.
Subscribe for freeย to get curated advice on building great products, lessons (and mistakes) from building PostHog, and deep dives into the strategies of top startups.
โ๏ธ React
๐ฆ Vercel reverted all edge rendering back to Node.js
Vercelโs VP of Product, Lee Rob, explained on X that Vercel is โreverting all edge rendering back to Node.js.โ If youโre using Vercel (and probably even if you donโt), youโll know that Vercel has pushed โedgeโ as a concept for a long time. On the one hand, edge means that compute is run near to where a user accessing a site hosted on Vercel is located. On the other hand, it also means that this compute is run on an โedge runtime,โ which is built on V8 and not on Node.js. While the concept of running compute near to the end users sound appealing, the advantages quickly disappear if data needs to be loaded from a central location (which very often is the case). At the same time, development teams are often struggling to adapt workload to the limited subset of APIs available on the edge runtime. Now it seams Vercel has come to the conclusion that overall, the challenges for developers outweigh the limited benefits, and is therefore reverting to centralized Node.js runtimes. I appreciate their transparency around this! If you want more details, Theo made a video about it.
- ๐ธ Clerk's prebuilt UI components give you a beautiful, fully-functional user management experience in minutes. Start for free!
- ๐ React Core PR - React 19 will not patch fetch() anymore!: the controversial
fetch()
patch to deduplicate requests in RSCs is now removed from React core. You might see it as a good thing, but keep in mind you will now need to deduplicate requests yourself manually withReact.cache
. - ๐ React Core PR - Don't minify symbols in production builds: React 19 production builds will preserve variable/function names and should become easier to read/debug. You can still minify it yourself if you want to, but using HTTP gzip compression should be enough to compensate for the extra size.
- ๐ React Docs PR - Add documentation for ref cleanup function: React 19 ref functions can now return a cleanup function (๐ฆ preview). This should also help users using string refs (removed in v19) and classes to migrate thanks to automated codemods.
- ๐ Remix POC - Remix + Hono + Vite
- ๐ React Summit - ๐ณ๐ฑ Amsterdam - 14-18 June - Get a 10% discount with code "TWIR". Awesome lineup including Evan Bacon, Kent C. Dodds, Theo, Tim Neutkens, Mark Erikson, Fred Schott and so many others!
- ๐ HTML attributes vs DOM properties: A great deep dive into subtle DOM behaviors and design decisions, including how frameworks like React or Vue handle the difference. Also explains how React 19 will improve support for Web Components.
- ๐ Redwood - Building a new docs site with RSC: Redwood is dogfooding Redwood by showing how to build a docs site with it, based on MDX and RSCs.
- ๐ Deploy a new Remix app to Cloudflare Pages: A lot has recently changed (and improved!) about how Remix can be deployed to CF Pages. This is a good guide on the state of the art.
- ๐ Improving INP in React and Next.js: Interaction to Next Paint has recently replaced First Input Delay (FID) as a core web vital; this post details how to optimize it.
- ๐ Did Signals Just Land in React?: Spoiler Alert: No, they didn't. But thereโs still a way to try signals in React.
- ๐ Vercel - Building an interactive 3D event badge with React Three Fiber
- ๐ Getting the Current URL in Next.js Server Components
- ๐ How to manifest streamlined authentication: AWS Cognito in a React app
- ๐ Localized link tags for SEO in Remix
- ๐ How Solid Made Me A Better React Developer
- ๐ Boosting Performance with Next.js and React Server Components - A GeekyAnts Case Study
- ๐ How to Simplify Global State Management in React Using Jotai
- ๐ฆ Remix 2.9 - Single Fetch (unstable)
- ๐ฆ StyleX - 0.6.1 - Typed variables, fallback values, ESLint plugin
- ๐ฆ Hydrogen April 2024 release - Analytics preview, stable Vite support, SEO updates, full-page caching
- ๐ฆ Zustand-Slices - Assemble slices into a single store
- ๐ฆ Spoiled - Realistic Spoiler component for React.js
- ๐๏ธ Off The Main Thread Podcast: Putting React In The Browser
- ๐ฅ Jack Herrington - JS Built-in Signals In React and Svelte today!
- ๐ฅ Ben Holmes - Vercel got it wrong: Interesting take on the โedgeโ topic by Ben Holmes, detailing Cloudflareโs approach.
๐ธ Sponsor
NLUX โ New React Library To Simplify Adding AI Features
NLUX is an open-source React library that makes it super simple to integrate powerful large language models (LLMs) like ChatGPT into your web app or website. With just a few lines of code, you can add conversational AI capabilities.
Key features ๐ include:
- Build AI Chat Interfaces In Minutes - High quality conversational AI interfaces with a few lines of code.
-
React Components & Hooks -
<AiChat />
for UI anduseChatAdapter
hook for easy integration. -
Flexible Adapters - For
ChatGPT
,LangChain
andHuggingFace
, and an API to Create Your Own Adapter for any backend. - Synchronise UI state with AI backends in an optimal way.
- Markdown Streaming - Render LLM markdown as it's being generated.
- Zero Dependencies - Lightweight codebase.
More info, examples and documentation on nlux.dev
๐ฑ React-Native
๐ฆ React Native 0.74 released
This week saw the release of React Native 0.74, a major milestone for the community! The latest version makes โbridgeless modeโ the default for new projects using the New Architecture (with the next release, 0.75, the New Arch will become the default, too). Both can still be turned off if needed, but they clearly represent the future of React Native, and over the last months especially, A LOT of libraries have added support for both. But thereโs more: RN 0.74 includes Yoga 3.0. There are very few breaking changes and deprecations, but itโs still worth checking them out in the release notes.
๐ฆ React Native IDE is now in beta
Another exciting news this week is the closed beta for React Native IDE, developed by the team at Software Mansion. You can now sign up to get early access to the IDE. They also have a landing page up now, and the docs are publicly available for anyone curious about it.
- ๐ธ React Native Analytics โ Omlet is a New Tool to Analyze Component Usage. See Trends to Improve Code and Boost Component Adoption.
- ๐ฆ Right-click to inspect with access to components hierarchy and jump-to-source in the coming React Native IDE?
- ๐ฆ Another week, another wild push from Evan Bacon: Precompiled React Native
- ๐ App.js Conf - ๐ต๐ฑ Krakรณw - 22-24 May. Get a 10% discount with code "TWIR".
- ๐ Sunrising New Architecture in the New Expensify App: Super cool to see a complex open-source app adapting the New Arch. A great example to look into!
- ๐ Apple privacy manifest for React Native: Iโve mentioned the Apple Privacy Manifest requirement before; finally, a good blog post summarizes the topic.
- ๐ Expo Blog: Save users from deleting your app with expo-quick-actions
- ๐ Creating a React Native โCurved Bottom Barโ with Handwritten SVG
- ๐ Exploring VisionOS Apps with React Native
- ๐ Microsoft is retiring App Center: Hereโs what React Native developers should use instead
- ๐ฆ React Native VisionCamera V4: Draw directly on camera frames with Skia, lots of Android bug fixes: There is a great demo showcasing what kind of stuff this enables, too!
- ๐ฆ react-native-svg 15.2.0 adds support for RN 0.74 on New Architecture
- ๐๏ธ RNR 294 - Goodbye, App Center!
- ๐ Rocket Ship 39 - Award Winning Credit Card App Yonder with Henry Moulton
- ๐ฅ The React Native Show Podcast: Coffee Talk 18 - Behind the Scenes of React Native 0.74 Release
- ๐ฅ Simon Grimm - React Native Multiplayer with Supabase Realtime and Skia
- ๐ฅ Oscar Franco - React Native Bridgeless Mode for Dummies
๐ Other
- ๐ฆ Fetch API has built-in timeout support
- ๐ On Signal Relays
- ๐ WebKit: Help us invent CSS Grid Level 3, aka โMasonryโ layout
- ๐ An intro to TSConfig for JavaScript Developers
- ๐ Vercel - Latency numbers every frontend developer should know
- ๐ The Front End Developer/Engineer Handbook 2024 โ A Guide to Modern Web Development - Free eBook
- ๐ฆ Chrome 125 beta - CSS Anchor Positioning, CSS stepped functions, โฆ
- ๐ฆ ESLint v9.1
- ๐ฆ Electron 30.0
๐คญ Fun
See ya! ๐