π¨ #188: React 19 RC0, Data Fetching, Framer Motion, Compiler, Astro, Zod, Remix, Docusaurus, React-Query,, Memory Leaks, Spline, Module Mocking, Slow Networks, MS Edge, RN Security Guide, RN 0.74.2, Reanimated 3.12, Turborepo 2, Biome 1.8...
Hey,
This is Benedikt this week, filling in for SΓ©bastien whoβs taking a newsletter break.
React 19 is nearing its final release, with the first RC published this week. Apart from this, thereβs not a lot of release activity in the React and React Native communities. So this week, I decided to feature two great pieces of content as headlines in both sections. A seminal 10k-word-long article about Data Fetching Patterns in Single-Page Applications by Juntao Qiu, and a great video overview of all the different ways to build React Native apps with Expo by Simon Grimm.
I wanted to use this opportunity to let you know that both SΓ©bastien and I put a lot of effort into finding the best content for the React and React Native sections, but Iβm sure there is still great stuff that sometimes goes unnoticed. Thatβs why weβre always open to suggestions, so feel free to let us know when you put something out there!
π‘ Check this newsletter on Twitter - visual format π¨
To support me:
- π Recommend the newsletter to your friends: it really helps!
- πΈ Sponsor the newsletter
- 𧡠Retweet the latest Twitter thread
Don't miss the next email!
πΈ Sponsorβ
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β
π Data Fetching Patterns in Single-Page Applications
This is a long read (~10k words), but such a great article! The title doesnβt do its justice, because in passing, this covers so much more than just data fetching. Basic React concepts, Suspense, async state handling, code splitting, prefetching, and parallel data fetching to avoid waterfalls. There has been a lot of discussion on X about web app performance in the last few weeks (Rails vs. React, MS Edge decision, β¦) - this is a great article to freshen up the basics of this topic to build a great user experience!
- πΈ Meilisearch - Build search as you type for React
- π React Router PR - defineRoute API
- π¦ shadcn/ui is working on adding charts
- π¦ Remix working inside a Cloudflare Durable Object π€―
- π¦ React 19.0.0-rc.0: Andrew Clark says βThis is the exact build we'll release as 19.0, unless an issue is reported that requires a breaking change.β
- π¦ Upcoming Spline (3D rendering) and NextJS RSC integration
- π I tried React Compiler today, and guess what β¦: A super interesting and detailed article about React Compiler and real-world use cases. Seems like weβre not at the point yet where we can just ignore everything about memoization because the Compiler takes care of it, and apart from this conclusion the article is also a great reminder of how memoization works exactly.
- π Do you still need Framer Motion?: The creator of the popular React animation library explains you might not need his library anymore thanks to 5 great new/upcoming CSS features.
- π Sneaky React Memory Leaks II: Closures Vs. React Query: This follows up on last week's great article. This time it shows how React Query might be affected as well by memory leaks, and how to fix them. Using custom hooks looks like a good general solution to this problem.
- π An even faster Microsoft Edge: Microsoft was using React for some elements of the UI in its Edge browser and is now abandoning this approach. See the video linked below for more context.
- π Speeding up the JavaScript ecosystem - Server Side JSX: The JSX runtime of React can lead to many object allocations. Marvin (Preact/Deno) shows it's possible to precompile JSX to improve server rendering of JSX and reduce GC. Maybe React could use that as well?
- π Type-safe module mocking in Storybook: Very elegant way to leverage subpath imports for module mocking.
- π Multiple action handlers with Zod in Remix: If you target one action endpoint from multiple components, this article shows you how to combine the different Zod schemas via discriminated union.
- π Embracing Slow Networks: Improving User Experience
- π Cleaner components with useSuspenseQuery & Why useSuspenseQuery works
- π Explore new hooks coming up in React 19
- π¦ React 19.0.0-rc.0: Andrew Clark said "This is the exact build we'll release as 19.0, unless an issue is reported that requires a breaking change."
- π¦ Docusaurus 3.4: A new way to centrally manage tags (great for consistency), an experimental hash router (great for offline browsing without a web server), and an option to use namespaces for local storage (useful if youβre deploying multiple instances of Docusaurus on the same domain).
- π This Month in React, May 2024 - Updates from React Conf
- π₯ Jack Herrington - Beware of "auto" Mode in the NextJS App Router
- π₯ Theo - Microsoft Regrets Using React (For Edge)
- π₯ Stephanie Dietz - How to Use React's
useOptimistic
Hook - π₯ UI Engineering - Why 95% of Modals should be Local (in React)
- π₯ Aaron Francis - Laravel vs React
- π₯ Theo - How React Query Won
Don't miss the next email!
πΈ Sponsorβ
WorkOS: enterprise-grade auth in minutes
πΒ WorkOS supports a complete User Management solution along with SSO, SCIM, RBAC, & FGA.
ποΈΒ Unlike other auth providers that rely on user-centric models, WorkOS is designed for B2B SaaS with an org modeling approach.
ποΈΒ The APIs are flexible, easy-to-use, and modular. Pick and choose what you need and integrate in minutes.
β¨Β User Management is free up to 1 million MAUs and includesΒ bot protection, impersonation, MFA, & more.
π€ WorkOS is trusted by hundreds of leading startups like Perplexity, Vercel, & Webflow.
Future-proof your auth stack with WorkOSΒ π
π± React-Nativeβ
π₯ Every Way to Build your React Native App with Expo
Many roads lead to Rome, and it seems there are almost as many ways to build an Expo app. This gives us developers a lot of power and freedom, but can also sometimes lead to confusion - not just for beginners! Thankfully, Simon made a great video comparing the different approaches via Expo Go, Expo Prebuild, Xcode, Android Studio, and EAS. This is also a great opportunity to congratulate Expo on reaching 30k stars on GitHub!
- πΈ React Native Mastery - The only course you need to Master React Native & Expo
- π¦ The most powerful demo AI app, featuring RSC via Expo Router: Weβve talked about Evan Baconβs RSC demo before. This is a great thread on X summing up the promise and including a nice comparison video on how great mobile UI can get especially in the context of LLM chat apps.
- π React Native Security Guide: Oscar picks up a topic that doesnβt get talked about enough. This is a good intro, covering secrets (TLDR: Donβt store them on a device) and encryption of user data (including leveraging biometrics).
- π Seamless Transitions: From Native to React Native: Some impulses for brownfield development: Because RN creates truly native apps, introducing RN to an existing app or migrating to RN can be made seamless for the end users.
- π¦ React Native 0.74.2: Patch release, bumping some dependencies (typescript-eslint, CLI) and fixing bugs.
- π¦ React Native Reanimated 3.12.0: Introduces a new hook useComposedEventHandler which simplifies merging of multiple event handlers.
- ποΈ RNR 298 - Create Expo Stack, NativeWind Ul, & Plugin Pro with Dan Stepanov
- π₯ Rocket Ship 42 - React Native is alive! App.js Recap with Γron Berezkin
- π₯ Expo - How to start your first Expo project in 2 minutes
π Otherβ
- π¦ Find memory issues using Chrome Dev Tools
- π Vitest Browser Mode
- π 10 modern Node.js runtime features to start using in 2024
- π Live types in a TypeScript monorepo - stop writing dead TypeScript
- π How To Use Corepack
- π Promises From The Ground Up
- π Zero - Rethinking local-first, general-purpose sync engine for the web
- π¦ Turborepo 2.0 - New terminal UI, watch mode, all-new docs
- π¦ Biome 1.8 - CSS support, new reports, CLI improvements...
- π¦ Deno 1.44 - Private npm registries, improved Node.js compat, and performance boosts
π€ Funβ
See ya! π
Don't miss the next email!