Hi everyone!
Another calm week in the React world. No huge announcement, but many great community articles to read.
Node.js v22.6 is out with experimental TypeScript support! ๐
Check our partner React Universe Conf (๐ต๐ฑ Wrocลaw - Sept 5-6), formerly named React Native EU. Get a 10% discount with code "TWIR". They really have a stunning speakers lineup this year!
๐ก Subscribe to the official newsletter to receive an email every week!
๐ธ 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
- ๐ธ Reactile โ a new approach to React-based web apps. Create your own views. Let it handle your windows and widgets in a single browser tab
- ๐ฆ Zuckerberg calling out React as one of Metaโs major open source initiatives
- ๐ฆ Visual editing with ReactBricks using RSC
- ๐ Revised โRedux Essentials" tutorial
- ๐๏ธ React-Africa - ๐ฒ๐ฆ Casablanca - 29 November - Line up is online, check, and apply a 10% discount on tickets with code TWIR !
- ๐ React Compiler, How Does It Work?: A 4-part series going really deep on the React Compiler code, explaining the Babel Plugin, useMemoCache, HIR/SSA transformations. Thatโs a lot of implementation details to read, and very technical, but there are also great overviews that describe the main algorithms at the end of each post. It operates on individual functions, with an AST โloweredโ to a Hight-level Intermediate Representation (HIR) that also permits to decouple the compiler from Babel. A quite advanced piece of technology!
- ๐ Avoiding premature abstraction with Unstyled React Components: Sam refactors a concrete Form button to a headless LoadingButton abstraction that remains flexible and doesnโt prematurely abstract styling. I agree, and once time comes you can still create another styled abstraction on top.
- ๐ Common Sense Refactoring of a Messy React Component: Alex explains his process to refactor a bloated real-world Form component. I do the same: extracting sub-components, custom hooks, and helper code from the main component usually improves clarity.
- ๐ Introducing XState Store: Dominik (React Query) likes Zustand, but explains why he now finds XState Store a more compelling option. Itโs quite similar but more opinionated (separate state/actions, event-drivenโฆ). Daishi answered you can get a similar interface with his new Zustand-xs middleware. I explained (tweet) why Iโm not always a fan of an event-driven interface.
- ๐ Using Notion as my CMS with Next.js: Describes a setup to reduce the friction of creating and publishing notes. Notion content is first converted as Markdown, and then renderer in a Next.js app.
- ๐ Next.jsโs unstable_cache() demystified: Some notes on the dangers of returning classes, and a link to an interesting related article/package listing even more caching gotchas.
- ๐ Build your own React state management library in under 40 lines of code: Creates a custom external store and reads it in React withโฆ useSyncExternalStore + 2 improvement suggestions such as adding an Immer integration.
- ๐ GitHub Vitale - Live notebooks in VS Code for JavaScript/TypeScript, web development, and AI experimentation: The GitHub Next team introduced a new Notebook technology (like Jupyter) for interactive exploratory coding based on Vite. It supports rendering a React component in a notebook cell.
- ๐ Frontend Security Checklist: Includes examples of mitigating XSS and CSRF attacks in a React context.
- ๐ The Art of Dithering and Retro Shading for the Web (with React Three Fiber)
- ๐จ Dรฉdale - Email template development environment, based on React Email
- ๐ฆ Redwood 8.0 RC: New version of the full-stack React framework is now in release candidate. It adds SSR and RSC support (experimental), Vite 5, Prettier 3. See the v8 upgrade guide. They also plan to introduce soon a Background Jobs feature.
- ๐ฆ Vercel AI SDK 3.3 - useChat() supports file attachments, useObject() streams structured data: With structured data based on Zod schemas, LLMs are getting easier to use for devs. Note that OpenAI also announced support for structured output with Zod support!
- ๐ฆ Astro 4.13 - stable request rewriting, stable content collections JSON schemas
- ๐ฆ react-three/xr 6.1 - WebXR Anchor API, Hit Testing API, DOM Overlay API, experimental Emulator
- ๐ฆ Tldraw sync - self-hostable real-time collaboration engine for React whiteboard drawing app
- ๐ฅ Theo - Server Islands are really cool
- ๐ฅ Jack Herrington - NextJS Feature Flagging Made Easy
- ๐ฅ UI Engineering - Why React is Declarative?
- ๐ฅ Expo - What React devs need to know about React Native
- ๐๏ธ Syntax - Why the jQuery Creator Uses React and Typescript - John Resig
- ๐๏ธ This Month in React - July 2024 - State of JS, React, HTML
๐ธ Sponsor
Let's meet at React Universe Conf 2024
React Universe Conf is two incredible days of learning, networking, and innovation in the heart of Europe. Formerly known as React Native EU, React Universe Conf is now the ultimate gathering for React and React Native enthusiasts. What's in it for you this year?
- Exceptional lineup: Dan Abramov, Evan Bacon, Kent C. Dodds, Delba de Oliveira, Marc Rousavy, and many other great speakers.
- Hot topics: New architecture, React Server Components, Static Hermes, and Out-of-Tree platforms.
- Practical insights on cross-platform app development with React Native.
Use promo code TWIR for 10% discount on your ticket. Book your spot HERE and see you in Wrocลaw!
๐ฑ React-Native
This section is authored by Benedikt.
- ๐ธ React Native Mastery - The only course you need to Master React Native & Expo
- ๐ฆ Why the Hermes team favors JSI NativeState over HostObject
- ๐ฆ Experimental tree shaking support landed for Expo: Experimentally available in SDK 52 (which is in canary)
- ๐ฆ Styles coming to React Native - Linear gradients, box shadows, CSS filters, % flex gaps
- ๐ React Native PR - Linear gradient in React Native under experimental backgroundImage style prop
- ๐ From JS to Fire OS - React Native for Amazon Devices: Reminder that RN can be used to build apps for Fire Tablets and Fire TVs, as Fire OS is based on Android.
- ๐ TV Navigation in React Native: A Guide to using TVFocusGuideView: Iโm really excited about RN beyond just phones and tablets, so I appreciate articles on how to best leverage platform specific behaviors like this article does for tvOS and Android TV.
- ๐ Xcode UI debugging with Quick Look: Comes in handy if you happen to work in Xcode a lot (I donโt ๐ ).
- ๐ My visit to Chain React 2024 (and some tips for going to conferences): Warning - if you didnโt go to Chain React yourself, this article will give you major FOMO, but I still enjoyed reading this.
- ๐ฆ React Native 0.75.0-rc.7 - update CLI to 14.0
- ๐ฆ React Native 0.74.5 - minor fixes
- ๐ฆ react-native-gesture-handler 2.18.0 - Now has ReanimatedSwipeable as a standalone component, adds a couple improvements and support for RN 0.75
- ๐ฆ react-native-svg 15.5.0 - Minor release introducing new filters, CSS filters API on FilterImage component and many bug fixes
- ๐ฆ react-native-reanimated 3.15.0 - ReducedMotionConfig, EntryExitTransition, CurvedTransition, RN 0.75 support and a lot of fixes
- ๐ฅ Simon Grimm - React Native Server Defined Rendering
- ๐ฅ Reactiiive - The secret behind Jotai and MMKV (React Native)
- ๐ฅ notJust.dev - Building the iOS 18 Photos App with React Native and Reanimated
- ๐๏ธ PodRocket - Using RSCs in Expo Router with Evan Bacon
๐ Other
- ๐ฆ TC39 meeting 103 -
RegExp.escape
stage 3, Concurrency Control + Unordered Async Iterator Helpers stage 1 - ๐ How Google handles JavaScript throughout the indexing process
- ๐ Why Unknown Types Are Useful
- ๐ A different way to think about TypeScript
- ๐ What if you used Container Units forโฆ everything?
- ๐ Effect Best Practices
- ๐ฆ Node v22.6.0 - with Experimental TypeScript support
- ๐ฆ Rslib - The library build tool powered by Rsbuild
- ๐ฆ Nx 19.5 - Stackblitz, Bun, Pnpm 9, Incremental Builds for Vite, Gradle Test Atomizer
๐คญ Fun
See ya! ๐