π¨ #175: RSC, useSyncExternalStore, Vinxi, Server Actions, Next.js, Remix, margins, WakuLand, R3F-uikit, React-Forget, RN releases, Bridgeless, Expo Fingerprint, Flash Calendar, Zeego, RN Reusables...
Hi everyone!
This week has been rather quiet in terms of releases, but we have many great articles to read!
Sorry for last week, the email was so long that despite removing links, it got truncated by Gmail π .
π‘ 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β
CMS with Inline Visual editing for Next.js with App routing
Set up a project in just 1 minute with the CLI and define your own Visual blocks as React components to convey your pixel-perfect corporate brand, using any CSS framework. Try the new Next.js starter with Server Components!
Content editors can easily use content blocks to compose pages visually, just like using a word processor, without compromising the design.
React Bricks is enterprise-ready with Digital Assets Management, Advanced SEO, Real-time Collaboration, Scheduled Publishing, Multilanguage, integration with external APIs, Approval Workflow, Multiple environments, Change history and more.
Trusted by corporate clients such as The Weather Channel, Deel.com, La Banque Postale, leading eCommerce sites and over 9,000 users worldwide.
Get started today!
βοΈ Reactβ
Instant Search Params with React Server Components
An awesome interactive article showing that itβs surprisingly hard to persist UI state to the query string in a React Server Component world and yet give immediate user feedback. Updating the URL triggers a server round-trip. The new useOptimistic
hook solves this problem nicely. This also shows a nice use-case for CSS :has()
, to avoid hoisting the startTransition
pending state.
Building a React Metaframework with Vinxi
TIL about Vinxi, a toolbox built on top of Vite and Nitro enabling you to easily create your own meta-framework, with support, SSR, routing conventions, server functions and everything. Solid Start uses it behind the hood, but itβs a framework-agnostic SDK. Apparently, TanStack Start will use it too! This article explains how to use it with React.
- πΈ Explore how to buildΒ a feature-rich PDF Viewer in React with Apryse's rendering engine. Customize UI, scroll, zoom, and search with annotations.
- π Avoiding Hydration Mismatches with useSyncExternalStore: Another great article from Dominik explaining how
useSyncExternalStore
and its 2 client/server snapshot callbacks can help prevent hydration mismatches. It can be a better alternative to useEffect for many use-cases, including rendering localized dates, or creating a client-only wrapper component. - π Exploring Next.js Forms with Server Actions: A very comprehensive step-by-step tutorial on using the new React/Next.js form primitives without any abstractions, and all the little mistakes you might make along the way.
- π No Outer margin: Gives good reasons to not apply margins inside your component root, but instead let the parent component handle the layout. Margins are the first thing that come to mind, but there are also other CSS rules that break component encapsulation. I recovered a great deleted article for you on that matter: Layout-isolated components.
- π Vjeux - 12 Years at Meta: If you are a new React developer, you may not have heard of Christopher Chedeau, but heβs one of the most impactful member of our community. A few things he created or significantly contributed to: React, React Native, Yoga, CSS-in-JS, Prettier, Excalidraw, Docusaurus, GraphQLβ¦
- π Learning Four Key Primitives In Solid: Donβt be mislead by the title, itβs a great article for React devs, comparing Solid vs React, Next.js and Remix on 4 interesting topics. TIL that Next.js RSC components would waterfall by default unless you use a preloading function.
- π Handle both JSON and FormData in Remix: Jacob explains the tradeoffs of using form inputs vs creating a FormData or JSON payload manually on an event handler. Shows how to create an Remix abstraction using Zod and Conform that can conveniently accept both JSON and FormData paylods.
- π Introducing Waku Land: A live deployment of every Waku examples.
- π Where to host your Remix app in 2024: Updated on 25 Feb.
- π HTMX vs React - A Complete Comparison: The article suggests to use React for rich web experiences, and use HTMX for pages with simpler interactivity.
- π Next.js vs. Remix - A Developer's Dilemma
- π Compiler Theory and Reactivity: Sathya works on React Forget and explains a compiler theory pass they use called Static Single Assignment form. I have to admit Iβm a bit lost here π . His previous post on Alias analysis is easier to understand.
- π How to Style Active Links in Next.js App Router
- π Add Dynamic Sitemap to Next.js Website Using Pages or App Directory
- π¦ @react-three/uikit - Build performant 3D user interfaces using react-three/fiber and yoga: New Poimandres collective package preview with an impressive π¦ demo
- π₯ Ryan Toronto - Asset loading in React 19: Explains a quite unknown but exciting upcoming React feature that lets you load assets (here CSS) of the next page before completing the navigation transition.
- π₯ Jack Herrington - React Hook Form & React 19 Form Actions, The Right Way
- π₯ Fireship - They made React great again? (React Labs)
- π₯ Fireship - This UI component library is mind-blowing (Aceternity Components)
- ποΈ PodRocket -StyleX with Naman Goel
Don't miss the next email!
πΈ Sponsorβ
The most comprehensive User Management Platform
Clerk streamlines React app authentication and user management, ensuring a quick setup for the modern web.
Experience the benefits of Clerk:
- π Pre-built UI components for sign-in, sign-up, user profiles, and organizations. Customize with any CSS library and deploy on your domain
- π¦ SDKs for React, React Native, Next.js, Redwood, Remix, and other frameworks
- β‘ Integrations with Firebase, Supabase, Convex, and other BaaS providers
- π User management, social login, magic links, MFA, and more out of the box
Dive into Clerk's quickstarts and tutorials to kickstart your projectπ
π± React-Nativeβ
This section is now co-authored with Benedikt. Feel free to send us your comments by email or on Twitter!
This past week, we all enjoyed a brief respite from major headline React Native news (or did I miss something, in this case @me). Perhaps that's a welcome change, especially after the whirlwind of events like Expo 50, visionOS, the State of React Native, react-strict-dom, and more. However, this doesn't mean the React Native world has come to a halt. Thereβs been a lot of little announcements that give us a glimpse in the near future of React Native. The first release candidates for RN 0.74 were released. They contain a lot of improvements as well as some deprecations and breaking changes, but from the first glance nothing major that makes me worried about upgrading effort. Most notably, bridgeless mode becomes the new default with 0.74 (but only when New Arch is enabled). Bridgeless mode is the third pillar of the New Arch, after the already introduced TurboModules and new renderer (Fabric). Speaking of New Arch and defaults, a PR was merged thatβll make the New Arch the default beginning with RN 0.75 (it will still be possible to opt out though). Also, the RFC with the React Native Frameworks definition has been merged, laying out the responsibilities of RN vs frameworks on top of RN.
- πΈ React Universe Conf - join the conference at the lowest price now. Thereβs a limited batch of blind bird tickets available.
- π How to integrate Native iOS code into a React Native project for iOS: Good introduction to bridging headers, @objc, and other fun stuff you need to know before diving into native code for iOS.
- π react-strict-dom, why it's so great? If you want to know how
<html.div>
ends up as a native component in iOS, read this short summary of react-strict-dom. - π Expo Push Notifications Migrating to FCM V1: In June, FCM Legacy will join the long list of discontinued Google services, so itβs really time to migrate!
- π @expo/fingerprint π€ GitHub Actions: In my opinion, Fingerprint is the most underhyped feature of Expo SDK 50. This post shows the killer use case: Kicking off a new native build as soon as Fingerprint determines it is required.
- π Universal Apps: A Single, Unified Codebase Powering Mobile, Desktop, Web, and TV? Kind of the holy grail, and a topic Iβm really excited about in 2024: One app, all the platforms. This article has some interesting thoughts about it.
- π How to build an offline-first app using Expo & Legend State
- π¦ React Native 0.74-rc.1
- π¦ React Native v0.73.5
- π¦ react-native-visionos 0.73.6: Multi window support and new docs!
- π¦ Zeego 1.8 + 1.9 - Universal cross-platform menus - Horizontal groups and group labels
- π¦ react-native-image-editor 4.0 - base64 output, format prop, returns metadata
- π¦ React Native Flash Calendar - Fast and flexible calendar using Shopify FlashList
- π¦ react-native-reusables: I love shadcn/ui (UI library) for web, this brings it to RN!
- π₯ Fireship - Expo in 100 Seconds
- π₯ Theo Brown - React's Next Big Change? (react strict dom)
- π₯ Expo - How to build TV apps with Expo SDK 50
- ποΈ Rocket Ship 031 - React Native Gestures & Microinteractions with Kacper KapuΕciak
- ποΈ RNR 289 - Real Life React Native: David Leuliette Talks Retail Shake Scanner
π Otherβ
- π£ Apple killing PWAs in EU - Immediate Action Needed
- π TypeScript PR - Infer type predicates from function bodies using control flow analysis
- π Rsbuild v1.0 Release Plan - Rspack v1 and Rsbuild v1 before July 2024
- π CSS :has() Interactive Guide
- π JSDoc as an alternative TypeScript syntax
- π Node.js 2023 Year in An Article
- π¦ Babel 7.24 - Decorator updates and JSON modules imports
- π¦ TypeScript 5.4 RC - NoInfet utility type, type narrowing improvements in closureq
- π¦ LightningCSS 1.42 - light-dark(), system colors, custom property deduplication
- π¦ Chrome 122 - Perf DevTools, Storage Buckets, Async Clipboard
- π¦ PGlite - Postgres in WASM
- π¦ snap - snapshot testing companion for node:test
π€ Funβ
See ya! π
Don't miss the next email!