🧡 This Week In React

πŸ‘‰ Remix: server state, waterfalls, + Next, + Prisma
πŸ‘‰ Remotion 2.6
πŸ‘‰ Preact Tutorial
πŸ‘‰ Relay 13
πŸ‘‰ 3D particles
πŸ‘‰ RN ➑️ SwiftUI
πŸ‘‰ JSI
πŸ‘‰ Skia
πŸ‘‰ TypeScript
πŸ‘‰ Container Queries
πŸ‘‰ Browser-Vite
πŸ‘‰ NAPI-RS 2

...more by email! βœ‰οΈ

🧡 Details πŸ‘‡
🧡 Intro

No big unexpected React announcement this week, but a good variety of interesting reads!

@remix_run continues to get great marketing from its early adopters!

βœ‰οΈ Subscribe by email or read this online (more content inside)
➑️ ThisWeekInReact.com
@remix_run 🧡 Some Thoughts on Server State in Remix by @_zachdtaylor

Showing another time how @remix_run abstractions are created to run with or without JS, including the loader function.

JS = bonus. Remix can fall back to good old browser behavior

zachdtaylor.com/blog/some-thou…
@remix_run @_zachdtaylor 🧡 Remix, SQLite, and Prisma, Oh my! by @jonrcrowell

Nice overview of a few @remix_run features: links/CSS, Outlet, loader function...

I really like the ability to query server data (here Prisma) on the loader: this reminds NextJS but more co-located

fullstackfish.com/posts/2021-12-…
@remix_run @_zachdtaylor @jonrcrowell 🧡 Run Next and Remix on the same server by @sergiodxa

Showcase an interesting setup where Next.js and Remix work together inside a single Node.js server.

Looks interesting for incremental migration strategies.

sergiodxa.com/articles/run-n…
@remix_run @_zachdtaylor @jonrcrowell @sergiodxa 🧡 Avoid waterfalls of queries in Remix loaders by @sergiodxa

@remix_run is generally good at parallelizing work and avoiding waterfalls

Yet you are not exempted from combining promises in loader functions

sergiodxa.com/articles/avoid…
@remix_run @_zachdtaylor @jonrcrowell @sergiodxa 🧡 Preact Tutorial by @_developit

10 minutes to learn this lighter React alternative

Includes a live code editor + preview

preactjs.com/tutorial/
@remix_run @_zachdtaylor @jonrcrowell @sergiodxa @_developit 🧡 Remotion v2.6 by @JNYBGR

Create videos with React πŸ‘Œ

Stable player to create live video editing previews
New error overlay

Most exciting: the next release is likely 3.0 with serverless support (AWS lambda). Will be much faster to produce videos!

remotion.dev/blog/2-6
@remix_run @_zachdtaylor @jonrcrowell @sergiodxa @_developit @JNYBGR 🧡 Relay v13.0 by @alunyov

github.com/facebook/relay…

Stable release including the brand new Rust compiler.
Read this other blog post about it:
relay.dev/blog/2021/12/0…
@remix_run @_zachdtaylor @jonrcrowell @sergiodxa @_developit @JNYBGR @alunyov 🧡 A React Native Engineer Builds A SwiftUI App, by @async

Interesting feedback.
React declarative model knowledge is reusable.

Good: animations, navigation, hot reload is good...

Bad: error messages, nested code pyramid...

medium.com/async/a-react-…
@remix_run @_zachdtaylor @jonrcrowell @sergiodxa @_developit @JNYBGR @alunyov @async 🧡 react-native-reanimated-carousel by @doho_1016

New lib fully implemented in Reanimated 2

Active maintainer, many examples

Should help replace the various legacy libs solving a similar problem πŸ‘Œ

github.com/dohooo/react-n…
@remix_run @_zachdtaylor @jonrcrowell @sergiodxa @_developit @JNYBGR @alunyov @async @doho_1016 🧡 react-native-jsi-image πŸ†• + react-native-camera deprecated ⚠️

@mrousavy is slowly upgrading our dear React-Native ecosystem to JSI, one lib at a time

github.com/mrousavy/react…

@remix_run @_zachdtaylor @jonrcrowell @sergiodxa @_developit @JNYBGR @alunyov @async @doho_1016 @mrousavy 🧡 An overview of all keyboard types available in React Native by @flexbox_

Simple yet useful cheatsheet resource with screenshots of the various React-Native keyboards

iOS & Android side by side

+ some extra tips

davidl.fr/blog/keyboard-…
@remix_run @_zachdtaylor @jonrcrowell @sergiodxa @_developit @JNYBGR @alunyov @async @doho_1016 @mrousavy @flexbox_ 🧡 The Matrix Reacts

First React-Native-Skia tutorial by @wcandillon

Worth watching even if you are not into React-Native, even just for the Skia+Remotion Matrix intro πŸ‘Œ

(because obviously, it works on web + video too 😏)

@remix_run @_zachdtaylor @jonrcrowell @sergiodxa @_developit @JNYBGR @alunyov @async @doho_1016 @mrousavy @flexbox_ @wcandillon 🧡 How not to learn TypeScript by @ddprrt

Great post, might help you learn TypeScript efficiently & incrementally

Mistakes:
- Ignore JS
- Annotate everything
- types vs values
- Going all-in in
- Learn the wrong TypeScript

TIL: noEmitOnError

fettblog.eu/how-not-to-lea…
@remix_run @_zachdtaylor @jonrcrowell @sergiodxa @_developit @JNYBGR @alunyov @async @doho_1016 @mrousavy @flexbox_ @wcandillon @ddprrt 🧡 A New Container Query Polyfill That Just Works

Great @chriscoyier analysis of the polyfill from @DasSurma

CQ are very important for media query encapsulation with React components model.

Polyfill looks usable today, but SSR leads to FOUC 😒

css-tricks.com/a-new-containe…
@remix_run @_zachdtaylor @jonrcrowell @sergiodxa @_developit @JNYBGR @alunyov @async @doho_1016 @mrousavy @flexbox_ @wcandillon @ddprrt @chriscoyier @DasSurma 🧡 NAPI-RS v2.0 by @Brooooook_lyn

One of the lib that streamline efficient Rust adoption in modern frontend tooling

v2: retrocompatible rewrite solving v1 limitations, generating binding files, providing new features

WASM support planed

napi.rs/blog/announce-…
@remix_run @_zachdtaylor @jonrcrowell @sergiodxa @_developit @JNYBGR @alunyov @async @doho_1016 @mrousavy @flexbox_ @wcandillon @ddprrt @chriscoyier @DasSurma @Brooooook_lyn 🧡 Browser-Vite by @Gluckies @divriots

Runs Vite in the browser by shimming Vite FS and using Web Workers

Interesting comparison with @stackblitz WebContainers, looks more lightweight.

Curious to see what kind of innovation this will lead to.

divriots.com/blog/vite-in-t…
@remix_run @_zachdtaylor @jonrcrowell @sergiodxa @_developit @JNYBGR @alunyov @async @doho_1016 @mrousavy @flexbox_ @wcandillon @ddprrt @chriscoyier @DasSurma @Brooooook_lyn @Gluckies @divriots @stackblitz 🧡 Partytown beta by @adamdbradley

Offload third-party scripts in service worker => better web perf

Now in beta, requesting feedback to make it production-ready

Communication using Service Worker XHR sync, but exploring Atomics for faster impl (x10)

builder.io/blog/partytown…
@remix_run @_zachdtaylor @jonrcrowell @sergiodxa @_developit @JNYBGR @alunyov @async @doho_1016 @mrousavy @flexbox_ @wcandillon @ddprrt @chriscoyier @DasSurma @Brooooook_lyn @Gluckies @divriots @stackblitz @adamdbradley 🧡 AWS Lambda: ES modules & top-level await support, by @jbesw

Exciting news to see this happening

AWS Lambda powers many other DX tools and platforms that frontend developers use regularly: it might also impact them positively

aws.amazon.com/fr/blogs/compu…
🎬 THREAD END! 🧡

βœ‰οΈ Subscribe & browse past editions at ThisWeekInReact.com
πŸ‘Œ More content, better insight by email

πŸ™ Help me make this sustainable πŸ™
🐦 Retweet the thread "head" below πŸ‘‡

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with Sebastien Lorber πŸ‡«πŸ‡· πŸ¦– βš›οΈ πŸ“¨

Sebastien Lorber πŸ‡«πŸ‡· πŸ¦– βš›οΈ πŸ“¨ Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @sebastienlorber

10 Jan
Why web3 is always associated with blockchain?

How a decentralized blockchain DB is even related to the web in the first place? πŸ€·β€β™‚οΈ

What about alternatives?
Like the one the creator of the web works on: techcrunch.com/2021/12/09/tim…

Is crypto the only way to solve centralization?
Read 4 tweets
23 Nov 21
🧡 This Week In React

πŸ‘‰ Remix 1.0
πŸ‘‰ Test Selector API
πŸ‘‰ 3D Scene
πŸ‘‰ Prev unnecessary renders
πŸ‘‰ Next.js offload scripts
πŸ‘‰ Tamagui cross-platform UI kit
πŸ‘‰ Partial hydration
πŸ‘‰ Lighthouse 9
πŸ‘‰ Cloudflare Pages
πŸ‘‰ Fundraisings

... more in the newsletter πŸ˜‰

🧡 Details πŸ‘‡
🧡 @remix_run launches in v1

Focus on UX, progressive enhancement, perf

Leverage existing Web APIs => reusable skills

Landing page parallax explains most important parts in 5min ⏱️

!= Next.js, @ryanflorence says it's more like Rails (intro video)

remix.run
🧡 React Test Selectors

Experimental RFC API by @brian_d_vaughn

Should make e2e tests more robust

Cross-platform: should work with RN, R3f...

Ability to select by text, testName (like TestingLib testId), but also component!

gist.github.com/bvaughn/d3c8b8…
Read 17 tweets
9 Nov 21
🧡 This Week In React

πŸ‘‰ Shopify Hydrogen
πŸ‘‰ React-Router
πŸ‘‰ Storybook interactive stories
πŸ‘‰ State Initializer pattern
πŸ‘‰ React + TDD
πŸ‘‰ Next.js
πŸ‘‰ Expo modules
πŸ‘‰ Skia
πŸ‘‰ TypeScript
πŸ‘‰ Chrome/Lighthouse User Flow

... more in the newsletter

🧡 Details πŸ‘‡
🧡 Hydrogen by @ShopifyDevs

An opinionated React framework for Shopify E-commerce sites

Bets all-in on Server Components, streaming SSR
Oxygen: dedicated hosting infra to come (V8 isolates at Edge)

=> Highly dynamic content without perf compromise

hydrogen.shopify.dev
🧡 React-Router v6 by @mjackson & @ryanflorence

Best of React & Reach routers: code-splitting, TS support, route ranking, config object

New: subroutes relative to parent, <Outlet> comp...

API remains familiar

Extensive migration doc + compact package

remix.run/blog/react-rou…
Read 16 tweets
28 Sep 21
This week in React

πŸ‘‰ Chat with Swyx & Sunil
πŸ‘‰ Shopify Hydrogen
πŸ‘‰ MUI v5
πŸ‘‰ React antipatterns
πŸ‘‰ useIsMounted
πŸ‘‰ useReducer
πŸ‘‰ Expo OTA
πŸ‘‰ Skia Breakout
πŸ‘‰ Reanimated Layout anim
πŸ‘‰ Colorwaver
πŸ‘‰ Smart client vs Smart server
πŸ‘‰ Rome ➑️ Rust
πŸ‘‰ Partytown
...

🧡 Details πŸ‘‡
1/ 🎧 Podcast with @swyx & @threepointone about various React-related topics



Really interesting discussion, a lot of insights/opinions:
- state machines
- Gatsby 4 vs Next.js
- why swc is a better fit for Next.js

First time I read about Hydrogen & Bun
2/ 🎦 Hydrogen by @ShopifyDevs

πŸ™‰ Slipped under my radar

CEO @tobi says React is about to reach the sweet spot for e-commerce

WIP meta-framework for Shopify
Custom hooks/comps
All-in on React server-components
Using Vite
Deploy on Oxygen platform

shopify.dev/hydrogen
Read 19 tweets
21 Sep 21
This week in React

πŸ‘‰ React 18 updates
πŸ‘‰ Gatsby 4
πŸ‘‰ Context
πŸ‘‰ FileSystem routing
πŸ‘‰ Shadows
πŸ‘‰ React & RN history flashback
πŸ‘‰ Next.js & Vercel
πŸ‘‰ State Management
πŸ‘‰ Custom hooks readability
πŸ‘‰ React Native everywhere
πŸ‘‰ React Native windows
πŸ‘‰ Corepack
...

🧡 Details πŸ‘‡
1/ @dan_abramov shared a long React 18 update, mostly for course creators:

github.com/reactwg/react-…

Some APIs are stable. There's still a good amount of work left

We shouldn't extrapolate the Big Picture vision too much for now

React 18 is not only for FB scale apps
2/ @gatsbyjs 4 introduced by @schaudustin

v4.gatsbyjs.com/gatsby-4/

- SSR
- deferred static generation
- parallel query running

New exciting features, and should close the gap with Next.js in terms of feature parity.

I bet @netlify will support Gatsby SSR/DSG soon 🀣
Read 27 tweets
23 Aug 21
This week in React

πŸ‘‰ Scheduling Profiler
πŸ‘‰ Next.js 11.1
πŸ‘‰ Split components
πŸ‘‰ "context flag" anti-pattern virus
πŸ‘‰ Dynamic forms with visitor
πŸ‘‰ TS Unions with Destructuring
πŸ‘‰ React Native 0.65 + plans
πŸ‘‰ React Navigation 6.0
πŸ‘‰ Portals + document.body
...

🧡 Details πŸ‘‡
React has a new Scheduling Profiler, presented by @brian_d_vaughn

This should help understand better what React is working on, in a concurrent world with features such as Suspense, transitions, offscreen, lazy...

Pro-active & also hint suggestions

github.com/reactwg/react-…
Next.js 11.1 released by @vercel team

nextjs.org/blog/next-11-1

They keep improving DX and perf.
In particular, swc integration and transforms rewritten in Rust.

Experimental ES modules support (turned on by default in next Next 😏)

Next Image improvements
Read 15 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(