Seb ⚛️ ThisWeekInReact.com
@sebastienlorber
🔥 Join 45k React devs - Stay up-to-date: 📨 ThisWeekInReact.com Docusaurus maintainer @ Meta
This Week In React 294: ⚛️ - React Compiler rollout - TanStack Start/Router/Query/Form - Next.js - GTKX - Effect - Unhead - shadcn - Preact 📱 - RN 0.87 - Screens - RNGH - Enriched Markdown - Tuft - Skia - Worklets - Pager View 🍿 Read thisweekinreact.com/newsletter/294 ✍️ @jwr.ski & I
Explicit Resource Management - soon available everywhere Just landed in Safari Technology Preview 250 webkit.org/blog/18191/r...
👀 Core Web Vitals + Soft nav / history.pushState() SPA framework users should care! Measuring client-side page transitions, officially coming: - Chrome 151 - August 11th - npm "web-vitals" v6.0 - Lighthouse v13.4 - PageSpeed Insights - Real User Monitoring providers
👀 JS Composites proposal update "After benchmarking and general reflection, the proposal is now pursuing an interning based approach." - @acutmore We didn't get Records & Tuples but we may still get interned data structures in JS! Really exciting update if this lands in JS
⚠️ Promise.all() makes your code sensitive to destructuring order 🆕 Promise.allKeyed() is IMHO a better alternative in many cases I've been using my "combine-promise" lib for that, and can finally deprecate it soon
TypeScript 7.0 is officially out, and it's much faster! Up to 16x faster with increased type-checking parallelization
👀 React Native 0.87 looks like a big cleanup release Lots of deprecated APIs are being removed, JS + native This includes significant ones: InteractionManager, SafeAreaView... Also, more APIs are getting deprecated, scheduled to be removed later Clearly moving toward 1.0 👀
Don't underestimate the number of CVEs related to ReDos Many of them are actually annoying and make "npm audit" and security tooling quite useless Many times, a dependency is technically vulnerable to ReDoS, but since you provide safe inputs, you get annoying false positive flags
👀 RegExp linear matching proposal Stage 0 Presented at TC39 soon for Stage 1 in 2 weeks It's exciting because it may help reduce the number of ReDoS CVE vulnerabilities Gives an easy way to deal with unsafe inputs used in RegExp and backtracking issues github.com/michaelficar...
12 years ago, I opened a PR Tim Berners-Lee, the inventor of the Web, approved it 😎 Today I stumbled upon my proudest achievement again... PR closed after triage 2 days ago 😭 github.com/linkeddata/r...
👀 ES2026 officially approved by Ecma - Array.fromAsync - Error.isError - Math.sumPrecise - Uint8Array to/from Base64 - Iterator Sequencing - JSON.parse source text access - Upsert - Map.getOrInsert
"proposed standard" kind of means it's already standardized, only a few move to the next stage in IETF process FYI HTTP2, SSH, QUIC, TLS 1.3, OAuth 2.0 are also at this stage, and yet widely adopted everywhere So no, it's not overhyped, it's officially here
👀 New HTTP QUERY method Similar to GET, with a body allowed Safe, idempotent, cacheable There are also headers to: - give the query its own URI (Location) to query again without body - give the response its own URI (Content-Location) to get the same response again www.reddit.com/r/webdev/com...
Wonder who will be the first to do this in their codebase 🤪 use(use(use(Ctx)))
This Week In React 287 ⚛️ - Fragment ref - React Compiler - StyleX - React Router - cnfast - Base UI - Remotion - React Aria 📱 - Reanimated - Widgets - VisionCamera - Test Renderer - Worklets - Legent List - Metro 🍿 Read/subscribe: thisweekinreact.com/newsletter/287 ✍️ @jwr.ski & I
👀 <React.Fragment ref> This API is really exciting, unlocking many new composition patterns - Already available in Canary - OSS flag enabled, so likely coming in v19.3? - Coming in RN too! Recently, it has been more exhaustively documented: react.dev/reference/re...
all Firefox/Chrome/Safari have similar results (although Safari seems much faster) I also try this one just in case but try/catch doesn't seem to add overhead compared to caught errors
👀 URL.canParse() - Now Baseline Widely Available In all browsers since December 2023 - safe to use in most cases If you run isValidUrl() against many non-URL inputs, switching could significantly improve performance, bypassing the usage of errors for control flow.
👀 CSS Linked Parameters Customize static resources like .svg files, directly from CSS/HTML No need to create a React/JSX component just to add dark/light mode to icon TIL about this CSS proposal from Google/Mozilla engs Still early, already in Firefox nightly drafts.csswg.org/css-link-par...
📦 sharp 0.35 - No more postinstall script FYI, the image manipulation library now ships prebuilt versions for most platforms You can upgrade and remove sharp from your package manager build exclusions (pnpm allowBuilds for ex)
React devs, it would be nice to be funnier 🤪 We barely have any React memes anymore I often have to pick from my backlog now 😅 Post some screenshotable shit, tag me so that I see it 🙏
🙉 Just realized Chrome now supports PHP tags 😱 Try it yourself: - Chrome 148 - chrome://flags => enable-experimental-web-platform-features
👀 The React Compiler in Rust is being rolled out ✅ Oxlint v1.70 ✅ SWC v68.1 - Rust crates ✅ Next.js v16.3.0-canary.52 - Soon in v16.4? 👀 ✅ Rspack v2 canary - Soon in v2.1? 👀 Did I miss anything else?
👀 By the way, the React Foundation has a website now! With today's repo move, it's a great day to make it the newsletter headline Website: react.foundation Newsletter: thisweekinreact.com/newsletter/285
👀 Is this Flow, or TypeScript? Is Flow coming back? - Flow syntax aligns with TypeScript - Flow has pattern matching - Useful React hooks/component/renders syntax - Compiler has been recently ported to Rust I'll keep an eye on it for you, but this is promising!
👀 TIL that DOM scroll() methods will return a Promise More reliable than "scrollEnd" events Particularly useful for scrollIntoView() - Chrome ➡️ already in v150 beta - Safari/WebKit ➡️ 👍 position - Firefox ➡️ 🤷♂️ position github.com/explainers-b...
⚛️ React repos just moved! GitHub org: /facebook ➡️ /react This reflects the transition to the React Foundation (which will likely be today's newsletter headline BTW)
In 2026, you are not a real developer if you don't write 100k-line PRs
JS devs - Time to celebrate 🎊 🥂 All modern package managers will block postinstall scripts by default : 📦 npm v12 🆕 📦 pnpm 10 📦 Yarn 4.14 📦 Bun 📦 Deno 📦 Aube This doesn't solve everything, but should greatly reduce the ability for supply chain worms to spread github.blog/changelog/20...