React 19.3 is here with a huuuge release post (that's packed with examples) bringing two anticipated APIs out of experimental status, as well as some Server Components additions. Here are some of the goodies:
Fragment Refs: Manage focus, events and measurements across a group of DOM nodes (a component, say!) without adding a wrapper element that could disrupt your layout.
View Transitions: <ViewTransition> animates elements entering, leaving or changing in transition updates, with support for Suspense reveals and animations you can customize with CSS.
|
💡 For a hands-on feel, Chris Coyier's review of <ViewTransition> from January still holds up, though it doesn't cover addTransitionType. |
Trusted Types support: React now preserves trusted objects when passing values to DOM APIs like innerHTML, avoiding string coercion that caused browsers enforcing Trusted Types to reject them.
Opt out of server rendering: use(browser()) lets a component render only in the browser, showing its nearest Suspense fallback in the generated HTML.
Elsewhere, <Activity> gains Server Component support, there's support for the new <select> parsing rules, and transitions now render independently, so a slow one no longer blocks unrelated ones. The full release notes (not the same as the release post!) paint the full picture. |
Native is Now the Future of Mobile at Shopify — Six years after going all-in on React Native, Shopify is rebuilding its apps in Swift and Kotlin, arguing coding agents have cut the cost of building the same features twice. We also learn what's going to happen to React Native Skia, FlashList and Restyle. Shopify Engineering |
📊 A companion post covers the 12-week Shop app rewrite, with before-and-after startup, stability and app-size metrics.
🤔 But not everyone's convinced: In a busy r/reactnative thread, one of Expo's founders suggests Shopify made "more of a political decision than a technical one" and that they were comparing an old-architecture app against a fresh rewrite. |
React Now Rusted All the Way Out — A team moved a 1000+ file React Router app onto oxc's Rust port of the React Compiler and watched the compile step drop from 14.3s to 0.81s. Better still, the port already handles patterns the Babel-based 1.0 skips, and the post ends with the Vite config to make the switch. Andrew Patton |
📄 What It Actually Takes to Migrate Discord to React Native's New Architecture – Only 14% of the tickets covered the migration itself. The rest was all in the long tail. Kamil Delekta (Software Mansion) 🤖 How the Next.js Team Closed 1,500 GitHub Issues in One Month – You won't be surprised that agents were involved. Marcos Hernanz (Next.js) 📄 Your React App Can Unmount When a Reader Turns On Chrome Translate – Why the classic removeChild error happens, and why the usual monkey-patch can hide the crash while leaving the UI broken. Davlat Aliev 📄 The Golden Switch: Migrating From Gatsby to Astro in Under 9¾ Days – Keeping their React components, after substantial prep work. Evil Martians |
🛠 Code, Tools & Libraries |
Vidact: Compiles React Components Down to Direct DOM Code — A compiler that takes React-style function components and hooks and emits direct DOM operations, a la Solid, with no VDOM or React runtime in the bundle. Beta, and unsupported React patterns will fail at build time. Mohamad Mohebifar |
|
Комментарии
Отправить комментарий