Hi everyone!
This week we have many great React articles and a few interesting releases. It seems that React is constantly being criticized, but overall, the arguments are always the same and many of them seems a bit outdated, and never acknowledging what React does better than other solutions.
The React Native world is taken over by the official launch of Vision Pro!
We are trying something new this week, with a very first Twitter thread dedicated to React Native. Let us know if you like it.
The newsletter will be on a break next week. We'll be back the 21th of February ๐.
I'd also like to ask you a small favor: can you reply to this e-mail with a simple "hello" or a comment? This helps increase our email deliverability. Thanks!
๐ก Subscribe to the official newsletter to receive an email every week!
๐ธ 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
Million is an optimizing compiler for React. This new major version is a complete rewrite that fixes caveats of previous versions, handles more edge cases, brings a new optimized hydration system and improves stability.
It looks like Million is planning to help us debug and maintain great web performance over time. According to their ๐ฆ launch trailer, a million linter is on the roadmap.
- ๐ธ Product for Engineers - PostHog's newsletter helping engineers build their product skills.
- ๐ React Types PR - JSDoc comments: Matt Pocock is working on increasing our DX when using React with TypeScript.
- ๐ Avoid using Reactโs
useFormStatus
: An interesting article presenting shortcomings of this new React hook. It requires to be used under a<form>
element, yet placing a submit<button>
outside a form is perfectly valid HTML. Suggests using an async transition as an alternative. - ๐ Direction-aware animations in Framer Motion: A pleasant interactive article showing how to animate list/details views and carousel slides in the correct direction for enter/exist animations.
- ๐ Open Sourcing the Remix Website: The Remix team think there are more benefits than drawbacks to open-source their website. You can now study how their homepage scroll experience is implemented, or how they SSR their docs pages.
- ๐ Dockerizing a Next.js Application with GitHub Actions: Builds the default Dockerfile provided by Vercel with appropriate env variables, and publishes it to your container registry.
- ๐ Removing React is just weakness leaving your codebase: Interesting criticism I canโt really agree with ๐ to me React doesnโt change that often, existing code doesnโt need to be rewritten and CSS-in-JS, well we know runtime-based libs are a problem for a whileโฆ And even React devs today rely more and more on web fundamentals than ever.
- ๐ It feels like React is getting a bit of a kicking recently: A more nuanced reply to the criticism above. React isnโt perfect, but isnโt going anywhere, and the web platform doesnโt currently give us all the tools we need.
- ๐ How to stream files from Next.js Route Handlers: Shows how to serve dynamic/generated files without loading them in memory. You might need to convert Node.js streams to web streams.
- ๐ How to Detect Clicks Anywhere on a Page in React: TIL about the event.composedPath() API.
- ๐ How streaming helps build faster web applications
- ๐ Lessons Learned from Developing DevCycle's Next.js SDK: Their feature-flag SDK had to support Server/Client Components, streaming and Suspense.
- ๐ How to generate responsive images on Remix with Unpic
- ๐ Enhance Your React App's Scalability using Storybook and Chromatic
- ๐ Tale of a Refactor - Payment system
- ๐ How we Increased Search Traffic by 20x in 4 Months with the Next.js App Router
- ๐ How I generate Open Graph images for my Astro-based blog
- ๐ Building a blog with Next.js App Router and MDX
- ๐ React Intersection Observer - A Practical Guide
- ๐ฆ Storybook 8 Beta - RSC support, SWC compiler, Vitest, major performance and compatibility improvements, on-the-fly visual testsโฆ
- ๐ฆ Conform 1.0 - Type-safe progressive enhancement form validation library for Remix and Next.js
- ๐ฆ Safe NextJS Navigation - Typesafe navigation for NextJS App Router
- ๐ฆ Astro 4.3 - i18n domains, html output control, ComponentProps utility typeโฆ
- ๐ฆ Apollo Client 3.9 - Suspense data-fetching, query preloading, memory optimizations, useQueryRefHandlers hookโฆ
- ๐ฆ Remix 2.6.0 - Cloudflare support for Vite plugin (unstable)
- ๐ฆ Sonner 1.4 - Toast component
- ๐ฆ Ariakit 0.4 - better support for CSS animations and transitions
- ๐ฆ React-resizable-panels 2.0 - Support for multi-panel resize
- ๐ฅ Lee Robinson - Next.js App Router Authentication (Sessions, Cookies, JWTs)
- ๐ฅ Jack Herrington - Five Application Killing React Anti-Patterns
- ๐๏ธ Dan Abramov on React, RSCs, and the future
๐ธ 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, and we also have a new React Native thread on Twitter! Please let us know if you like it, and support us with a like or retweet ๐.
Announcing React Native for Apple Vision Pro
Last week, Apple released their Apple Vision Pro, and at least parts of the React Native community are excited about a new platform for which theyโll be able to build experiences with their favorite framework. There are two different approaches (๐ฆ side-by-side comparison) to bring React Native onto visionPro:
Similar to how you can run an iOS app on macOS you can check a box in App Store Connect and enable your app to run on visionOS โas is,โ using compatibility mode. Check out how ๐ฆ Evan Bacon provisions, builds, and installs an Expo app on visionPro in under 10 minutes. Apps in compatibility mode donโt take advantage of the โspatial computingโ capabilities of visionOS though, theyโre merely an iPad screen shown in the room.
To build apps that are truly optimized for this new world, additional native capabilities need to be adapted. And that is exactly what this new visionOS platform is doing, driven by Oskar Kwaลniewski and brought to us by Callstack.
Itโs early days, but it's super exciting to see RN embrace a new platform so quickly! The very first React Native visionOS app Spacial Noise is already available on the App Store.
- ๐ธ Moropo - Mobile Testing Infrastructure That Integrates Seamlessly With Expo EAS
- ๐ RFC - React Native Frameworks: Did you ever wonder where the boundary between React Native, Expo, and other community tools is? Lines are blurry, and this RFC aims to clarify things by introducing the concept of โReact Native Frameworks.โ
- ๐ CSS4 color functions and DisplayP3 color: More color options (e.g. Wide Gamut) coming to React Native.
- ๐ฆ Expo is dogfooding Expo web and Expo Router on their new blog
- ๐ฆ Shopify continues to bet on React Native
- ๐ Expo Docs - Build Expo apps for TV: โReact Native everywhereโ is becoming more true every day. Thanks to Expo config plugins, experimental support for Apple TV and Android TV is now directly available. This is a super exciting development, which Iโm sure will continue with macOS, visionOS, โฆ
- ๐ Improved Metro bundler docs from Expo: Explaining how bundle splitting, tree shaking, and minification work and and how Metro is now also used for the web.
- ๐ What every dev should know about using Environment Variables: Handling environment variables in RN correctly is critical, as you otherwise run the risk of shipping (and therefore exposing) secrets to the client.
- ๐ Fingerprint your native runtime with @expo/fingerprint: Determining whether an update to the JS bundle of a RN app requires a new native build is a tricky question. With SDK 50, Expo released Fingerprint, which basically creates a single hash value representing all the โnative surface areaโ of a RN app and can then be used to trigger a new native build.
- ๐ 6 reasons to use EAS Update: Did you know about the republish feature? I didnโt, before reading this article. In case of a messed up upgrade, you can quickly republish a previous (working) update!
- ๐ How to add a new target to your file with Expo config plugin?
- ๐ฆ React Native Storybook 7 - CSF 3, TypeScript, Markdown, Automatic story loading, Auto-generation for controls
- ๐ฆ React Native Test App 3.1 - Support for bridgeless mode
- ๐ฅ William Candillon - JavaScript Animations in 2024: The next version of Reanimated will support JavaScript generators. William rewrites 3 of his custom Reanimated animation examples to generators, using yields in a while (true) loop.
- ๐ฅ Simon Grimm - The Time for React Native is Now
- ๐๏ธ RNR 287 - Special Guest - Charlie Cheever: To me it was always clear that Expo was meant to be a layer on top of React Native. But did you know that Charlie Cheever and James Ide started working on Expo before React Native was even around?
- ๐๏ธ Rocket Ship 28 - Expo Router & Universal React Native Apps with Evan Bacon
- ๐๏ธ The React Native Show 34 - Results of the State of React Native 2023 Survey
๐ Other
- ๐ Interop 2024 Dashboard - What browsers will prioritize this year
- ๐ Express Forward - The plan for Express v5, v6, v7
- ๐ The next evolution of serverless is stateful
- ๐ TotalTypeScript - Method Shorthand Syntax Considered Harmful
- ๐ TotalTypeScript - When 'as never' Is The Only Thing That Works
- ๐ Squeezing Last Bit Of JavaScript Performance For My Automation Game
- ๐ How to Favicon in 2024: Six files that fit most needs
- ๐ Using branded types in validators
- ๐ฆ Turborepo 1.12
- ๐ฆ jQuery 4.0.0 beta
๐คญ Fun
See ya! ๐