This Week In React #205 : Next.js, useActionState, BottomSheet, edge-to-edge, Ignite, Metro, ES2025, Node.js, TypeScript...
Sebastien Lorber
Posted on October 18, 2024
Hi everyone!
This week we have a major Next.js RC release dropping just before Next.js Conf, many diverse releases, and great interactive blog posts.
The React Native world is quite active too, with many great releases from infrastructure packages you probably rely on. I heard v0.76 stable is around the corner!
Node.js 23 is out, and we have 4 new features ready to be standardized in ES2025!
๐ The newsletter isn't growing as fast as it used to. I'd really appreciate it if you'd recommend it to your friends and colleagues. You can just forward them this email (or the online version link), and they'll decide if it's worth subscribing to. Thanks!
๐ก Subscribe to the official newsletter to receive an email every week!
๐ธ Sponsor
AG Charts: The best React Charts in the world.
AG Charts is a canvas-based charting library from AG Grid. Initially built to power AG Grids Integrated Charts, AG Charts now has over 1 million npm downloads/month:
- ๐ Free: Access a range of chart types, including bar, line, scatter, area, and more โ completely free, forever.
- ๐ Fast: Using batch drawing and advanced change detection alongside the offscreen canvas API, AG Charts can easily render hundreds of thousands of data points out of the box
- ๐ Financial Charts: Build interactive financial charts featuring advanced annotations with just 3 lines of code.
- ๐ข Enterprise Features: Upgrade to Enterprise to unlock advanced capabilities such as animations, context menus, crosshairs and more. Try it for free, no trial license required.
Learn More: www.ag-grid.com/charts
โ๏ธ React
Months after the first RC, another big one drops just before Next.js Conf, including:
-
@next/codemod upgrade
: Easily upgrade to the latest Next.js and React versions. - Turbopack for development: Performance improvements and Next.js 15 stability target.
- Async Request APIs (Breaking): Incremental step towards a simplified rendering and caching model.
- Server Actions: Enhanced security with unguessable endpoints and removal of unused actions.
- Static Indicator: New visual indicator shows static routes during development.
-
next/form
: Enhance HTML forms with client-side navigation. -
next.config.ts
: TypeScript support for the Next.js configuration file. -
instrumentation.js
(Stable): New API for server lifecycle observability. - Development and Build improvements: Improved build times and Faster Fast Refresh.
- Self-hosting: More control over
Cache-Control
headers. - ESLint 9
- ๐ธ Product for Engineers - The magic of small engineering teams
- ๐ React Core PR - Re-land non-blocking prerendering: The prerendering of Suspense siblings (blocking the v19 release) has been reverted due to breakages and is now re-introduced.
- ๐ Next.js PR draft - experimental Request Interceptors: This new feature could complement middleware and address some of its limitations with different tradeoffs.
- ๐ react-beautiful-dnd is now deprecated: Atlassian is now focusing on building โpragmatic drag and dropโ.
- ๐๏ธย React Summit US - ๐บ๐ธย New-York - 19 & 22 December - Hurry and grab your ticket to the conference as prices are about to go up ! And donโt forget your discount with code โTWIRโ.
- ๐ The True Nature of useActionState: An interactive article that points out the API design similarities between
useReducer
anduseActionState
. It refactors an in-memory todo app usinguseReducer
to use persistent/async storage. React 19 makes it convenient to turn an existing reducer async and move it to the server. - ๐ Headless, boneless, skinless & lifeless UI: Adam Argyle attempts to classify different React UI abstraction libraries more precisely than just โheadlessโ.
- ๐ Drag to Select: This awesome interactive article explains how to implement a complex item selection UX in React, including various edge cases to consider such as user scrolling while dragging.
- ๐ A Future for Web Components Without Shadow DOM: Jenna (RadixUI) shares interesting insight on Web Components from the perspective of a React design system dev. I thought Declarative Shadow DOM was required for SSR, but customized built-ins and custom attributes (proposal) might be better alternatives.
- ๐ The Big "Server Waterfall Problem" with RSCs: Kent explains itโs still possible to have waterfalls when using RSCs, but server-side waterfalls are less problematic than client-side waterfalls. The tension between query co-location and props drilling is not going away with RSCs.
- ๐ How to prevent re-render in React with Tailwind CSS: Adding data attributes at the top of the DOM tree could help reduce statefulness in deeply nested components. An interesting technique, often used for theming, not only for Tailwind users.
- ๐ How to Use Next-Safe-Action for Your Server Actions: Shows how to enhance Next.js Server Actions with Zod params validation, an access control middleware, normalized error management and React-Query integration.
- ๐ฆ Zustand 5.0 - No new feature, but twice smaller
- ๐ฆ Number Flow - A React component to transition, format, and localize numbers
- ๐ฆ Atomic-CSS-DevTools: This Chrome extension adds a dev tool panel for debugging atomic CSS rules as if they were not atomic. Works with Tailwind, StyleX, Pandaโฆ
- ๐ฆ Remix 2.13 - Stabilizes
lazyRouteDiscovery
,data
,singleFetch
,flushSync
,viewTransition
- ๐ฆ React Router 6.27 - Stable
dataStrategy
,patchRoutesOnNavigation
,flushSync
,viewTransition
- ๐ฆ ESLint-Plugin-React-Hooks 5.0 - Support for ESLint 9
- ๐ฆ Astro 4.16 - Concurrent Builds
- ๐ฆ Just-Styled - Dead simple CSS-in-JS library for React 19+
- ๐ฅ Alem Tuzlak - How React Router v7 became type-safe!
- ๐ฅ Sam Selikoff - Building a Reusable Component that Animates on Scroll
- ๐๏ธ Syntax 833 - Next Gen Fullstack React with TanStack
๐ธ Sponsor
WorkOS: Modern Identity Platform for B2B SaaS
With WorkOS you can start selling to enterprises with just a few lines of code.
๐ย WorkOS AuthKit supports a complete user management solution along with SSO, SCIM, RBAC, & FGA.
๐๏ธย The APIs are flexible, easy-to-use, and modular. Pick and choose what you need and integrate in minutes.
๐จ Design and user experience are everything. From the quality of our documentation to how your users onboard, we remove all the unnecessary complexity for developers.
โจย AuthKit is free up to 1 million MAUs and includesย bot protection, MFA, RBAC, & more.
๐ค WorkOS is trusted by hundreds of leading startups like Perplexity, Vercel, & Webflow.
Get started with WorkOSย ๐
๐ฑ React-Native
- ๐ธ Expo Starter Kit - Fully Featured Starter Kit to Ship Mobile Apps Faster for iOS, Android, and Web
- ๐ฆ Expo DOM Components on macOS demo: This could offer a way for Electron/Tauri desktop apps (WebView) to incrementally migrate to native in the future.
- ๐ React Native PR - Fix cursor issue in iOS controlled components (NewArch): The major text input issue Dan reported last week has been fixed for the new architecture.
- ๐ React Native Docs - Pure C++ Turbo Native Modules
- ๐๏ธย RNLConf - ๐ฌ๐งย London - 14 & 15 November - Get a 10% discount with code โTWIRโ. Alex Hunt, Charlotte Isambert, Cedric Van Putten and Charlie Cheever will give a talk !
- ๐ Introducing the OMH Cloud Storage Module
- ๐ Build a daily workout tracker with Clerk, Convex, and Expo
- ๐ Manage notifications in a WebView with React Native
- ๐ฆ react-native-edge-to-edge - Lets Android app content flow beneath system bars: Important infrastructure library supported by Expo, particularly useful for Android 15+.
- ๐ฆ Bottom Sheet 5.0 - RNGH v2, web support, dynamic sizing, FlashList integratio,
- ๐ฆ Metro 0.81 - scheduled for RN 0.76,
fileSystemLookup
,onClose
- ๐ฆ Ignite 10.0 - Infinite Red's battle-tested React Native starter: This new version comes with Expo prebuild, dark mode, Expo Router, MKKV, i18next, RNTL and more.
- ๐ฆ react-native-bootsplash 6.2 - Kotlin rewrite, better handling of translucent bars
- ๐ฆ react-native-permissions 5.0 - iOS 18 limited contact permission, permission escalation, drop older versions
- ๐ฆ react-native-fast-confetti - Based on Skia Atlas
- ๐ฅ Expo - Universal App Tutorial Series - How to build your first React Native app
- ๐ฅ Catalin Miron - Custom Animated tabs
- ๐ฅ Simon Grimm - Is this the Expo Competitor? (One)
๐ Other
- ๐ TC39 - Updates from the 104th meeting: 14 proposals progressed, 4 of them reached stage 4 and ready to land in ES2025!
- ๐ Companion Windows: Explainer from Google working on a web feature that could be the missing piece for MPAs, allowing them to preserve the state of dynamic widgets while navigating
- ๐ Introducing Express v5: A New Era for Node.js Framework: v5.0 has been published a few weeks ago, and we now have an official blog post with a list of breaking changes, also explaining why v5 is still not tagged as
latest
. - ๐ฆ Node.js 23.0 - require(ESM) enabled by default
- ๐ฆ TypeScript 5.7 Beta - New checks, es2024 lib/target, relative path rewriting, perf
- ๐ฆ srvx - Universal Server API based on web platform standards, works with Deno, Bun Node.js
๐คญ Fun
See ya! ๐
Posted on October 18, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
November 28, 2024
November 18, 2024