This Week In React #199: shadcn, Next.js, Remix, RN-WebGPU, React-Three-Fiber, Re.Pack, Super Apps, RN-macOS, EAS...
Sebastien Lorber
Posted on September 6, 2024
Hi everyone!
Cyril and Matthieu from Theodo Apps (formerly BAM) here ๐, standing in for Seb to bring you the latest news from the React and React Native worlds.
This week, shadcn has released a new CLI, and we've noticed other nice things that are currently cooking, like support for the use()
hook in React Query.
The React Universe Conf starts tomorrow, we're expecting React Native announcements that we will discuss next week!
๐ก Subscribe to the official newsletter to receive an email every week!
๐ธ Sponsor
[Live Workshop] Debugging Next.js w/ Examples
Join us on September 15th for a hands-on workshop with Dan Mindru, co-host of the Morning Maker show, where he'll share how he shaved 22.3 seconds off an API call using Sentry. You'll pick up practical tips on how to debug errors and performance issues using Sentryโs Tracing and Session ReplayโRSVP to save your spot.
โ๏ธ React
Itโs significantly more powerful and flexible:
-
shadcn add
can now install components, themes, hooks, utils, dependenciesโฆ - It supports for multiple React frameworks (Next.js, Remix, Vite, Laravel)
- It can update your tailwind config instead of overriding it
- Components can be imported directly from urls
More details in ๐ฆ this twitter thread.
- ๐ธ React Component Analytics โ Omlet Scans Your Codebase to Measure Component Usage to Increase Code Quality and Design Systems Adoption
- ๐ TanStack Query PR - Add support for
React.use()
: React Query plans to return a promise that you canuse()
, making it easier to integrate with Suspense in a performant way. Itโs more convenient thanusePrefetchQuery
and more parallel thanuseSuspenseQuery
. - ๐ Remix Route Convention Evolution: The new
routes.ts
we evoked last week will allow you to skip filesystem-based routing, or simplify using the convention of your choice. - ๐ฆ Next.js 15 may be released soon without waiting for React 19 to be stable, and without requiring React 19 for the pages router. It will include major Turbopack improvements.
- ๐ฆ Render on Fetch vs Fetch on Render: Theo shares a graphical visualization of different React rendering patterns. An associated video is available to deep dive.
- ๐ Introducing @svg-use: Greatly explains how SVG-in-JS (notably SVGR in React) is convenient for theming and distribution, but is not ideal in terms of performance and duplication. The
<use href>
pattern is a good alternative but requires manual plumbing, so the author created a toolchain to automate it. - ๐ Build-time Components: Greatly illustrated article explains the benefits of React Server Components for MDX users looking to make their content interactive. Client components and build-time Remark/Rehype plugins have limitations, and RSCs offer the best of both.
- ๐ Using Server Functions and TanStack Query: TanStack Start is almost ready to use, and has a compelling data fetching approach, with โserver fnsโ integrated with react-query and routing (for prefetching), fully typesafe of course.
- ๐ What the heck is atomic state management?: A refresher on how to use Jotai โthe right wayโ and the benefits it brings.
- ๐ Component testing in Storybook: Storybook promotes component testing as a complement to end-to-end testing, offering speed and reliability with browser fidelity for better UI test coverage.
- ๐ The Complete Developer Guide to React 19: A 2-part series on whatโs coming in React 19, including useTransition, useActionState, useOptimistic, use, Server Components, Server Actions, ref as a prop, Diffs for Hydration Errors, Improved error reporting, Context as a provider, useDeferredValue initial value & more.
- ๐ Easy RAG for TypeScript and React Apps: Build a RAG system in TypeScript and React by processing text documents, generating embeddings, and utilizing a vector database for semantic search to answer user queries.
- ๐ Blending Markdown and React components in NextJS
- ๐ Higher Order Components (HOCs) in React: What They Are and How To Use Them
- ๐ Comprehensive React Testing: Handling API Calls with Mock Service Worker
- ๐ Using the inert attribute in React
- ๐ Authoring CSS in modern JavaScript apps
- ๐ฆ Midday V1 - Starter kit based on Next.js, Turborepo, Shadcn & more
- ๐ฆ Bulletproof-React - scalable React architecture repo - now updated with Next.js examples
- ๐ฆ Astro 4.15 - Astro Actions, Use rewrites for i18n fallbacks, libSQL remotes in @astrojs/db, Timeout option in client:idle, Swap helpers for ViewTransitions
- ๐ฅ Lee Robinson - Build anything with v0 (3D games, interactive apps)
- ๐ฅ Jack Herrington - Using AI Structured Output with NextJS & React
๐ธ Sponsor
Run GitHub Actions up to 2x faster at half the cost
Blacksmith runs your GitHub Actions substantially faster by running them on modern gaming CPUs. Integrating Blacksmith is a one-line code change. 100+ companies like Ashby, GitBook, Superblocks, and Slope use Blacksmith to help developers merge code faster.
๐ฑ React-Native
At the time weโre writing this, the React Native Core Contributor Summit is happening in Wrocลaw.
It will be followed by the React Universe conf on Thursday and Friday. A lot of exciting talks are planned, and you can follow along on Youtube. Some highlights: A new debugger, The New Architecture, Expo DOM Components, Static Hermes.
So we will probably have more React Native news for you next week!
- ๐ธ React Native Mastery - The only course you need to Master React Native & Expo
- ๐ Re.Pack is adding support for Rspack: The alternative, webpack-compatible bundler for React Native will probably see major speed gains with this change.
- ๐ฆ React Native IDE will integrate Storybook into IDE's preview mode
- ๐ฆ React Three Fiber running on react-native-webgpu: Weโve seen examples of Three.js running with react-native-webgpu. Aaron Grider from SpaceX is currently working on React Three Fiber support, bringing its declarative API to React Native land.
- ๐ Create and run fast end-to-end tests using Moropo and Expo: with Maestro
- ๐ How to Develop a Super App with React Native?: Use of a custom native module for communication between mini-apps differs from the Repack approach, which leverages Webpack to generate modular and independent JavaScript bundles for each mini-app.
- ๐ Expo documentation update: Local First Architecture, DOM Components, Native project upgrade helper for SDK 51.
- ๐ Expo Application Services (EAS) Pricing: EAS Update and Build concurrencies get cheaper as of September 1st.
- ๐ฆ react-native-macos 0.75
- ๐ฅ Minute React Native - React Native WebGPU Explained in under 2 Minutes
- ๐ฅ Danโs Lab - How to build a QR Code Scanner with Expo
- ๐ฅ Simon Grimm - Expo DOM Components are Wild
- ๐ฅ Chain React 2024 - YouTube playlist available
๐ Other
- ๐ Inside ECMAScript: JavaScript Standard Gets an Extra Stage
- ๐ The web's clipboard, and how it stores data of different types
- ๐ JavaScript Generators Explained, But On A Senior-Level
- ๐ AggregateError in JavaScript
- ๐ฆ ThreeJS 168
- ๐ฆ Style-observer - A MutationObserver for CSS
- ๐ฆ Effect 3.7 - With HttpApi, a declarative way to define api endpoints
- ๐ฆ Node 22.8 - module.enableCompileCache(), vm.createContext() with freezable globalThis, coverage thresholds
- ๐ฆ Sherif 1.0 - Opinionated, zero-config linter for JavaScript monorepos
- ๐ฆ Safari Technology Preview 202 - Lots of CSS features
- ๐ฆ i-html - inline-html import element
๐คญ Fun
See ya! ๐
Posted on September 6, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
November 28, 2024
November 18, 2024