Seb βš›οΈ ThisWeekInReact.com Profile picture
Jan 11, 2022 β€’ 22 tweets β€’ 49 min read β€’ Read on X
🧡 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 Seb βš›οΈ ThisWeekInReact.com

Seb βš›οΈ ThisWeekInReact.com 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

Mar 1, 2023
🧡 This Week In React

βš›οΈ
πŸ‘‰ Next.js
πŸ‘‰ Signals
πŸ‘‰ useSyncExternalStore
πŸ‘‰ Server Components
πŸ‘‰ TanStack Bling
πŸ‘‰ Forgetti
πŸ‘‰ Suspense Toolbox
πŸ‘‰ Module Extraction

πŸ“±
πŸ‘‰ Expo
πŸ‘‰ Reanimated
πŸ‘‰ Metro
πŸ‘‰ Restyle
πŸ‘‰ DankStyle
πŸ‘‰ RFCs

Links ➑️ thisweekinreact.com/newsletter/136

Preview πŸ‘‡ Image
🧡 Intro

Signals remained a trending topic this week
Great Next.js 12.3 release unveiling a new cache system

Also many new for React-Native!
Expo 48, Expo Router 1, Expo Image 1, Reanimated 3, Metro symlinks support!

βœ‰οΈ Subscribe by email - Much better!
πŸ‘₯ Join 17000+ readers
Next.js 12.3 was released with great new features.
Many we already knew were coming.

What surprised me most is the new caching system of Next.js leveraging Vercel infra.

Worth checking this thread + link:


"This really unlocks the Edge" Image
Read 9 tweets
Feb 27, 2023
Different perspective πŸ€ͺ

"Mutability has great positives
But thinking immutability is bad may just mean some past patterns were problematic, and not that the entirety of immutable data is bad"

useMemo/useCallback will go away someday

I can agree, but maybe the pain is only temporary?

Maybe we shouldn't throw the immutability model because of short-term difficulties, and the platform should evolve to support better the immutable UI model

Things like Records & Tuples can greatly help

"make the right technical choice, and make the right long term choice"

I think the React team still follow this today

I can understand signals are appealing right now, but is it the way you want to write code in 10 years once the platform has improved?

Read 7 tweets
Nov 2, 2022
🧡 This Week In React

πŸ‘‰ Next.js 13
πŸ‘‰ Turbopack
πŸ‘‰ Remixing Shopify
πŸ‘‰ React-Three-Fiber Journey
πŸ‘‰ Gatsby Valhalla
πŸ‘‰ Full Stack Comps
πŸ‘‰ Rive
πŸ‘‰ Storybook
πŸ‘‰ React-Query
πŸ‘‰ Docusaurus
πŸ‘‰ Asta
πŸ‘‰ Expo 47
πŸ‘‰ TypeScript 4.9
πŸ‘‰ stc

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

🧡 Details πŸ‘‡
🧡 Intro

What a week 🀯

- Next.js conf: Next.js 13 + Turbopack
- Shopify acquires Remix
- Three.js Journey goes React
- Gatsby 5 releases Valhallah

Also testing a new format, do you like it?

βœ‰οΈ Subscribe by email - Much better!

revue.thisweekinreact.com

Sneak peek below πŸ‘‡
🧡 Next.js 13 - @vercel

New app/ directory: enables the new features and latest React 18 innovations like React Server Components and streaming

Nested layouts!

Turbopack: new alpha Rust bundler

Also improves image + font + link and many other things

nextjs.org/blog/next-13
Read 24 tweets
Oct 31, 2022
I'll do a thread with all the funny tweets I gathered for my React newsletter

Too much fun to not share 🀭

Just wondering if I should exclude non-React/frontend memes?

Should I include these? πŸ‘‡

Read 6 tweets
Sep 6, 2022
There are 16 hooks in React 😏 😈

And I bet you never used this one: useSyncExternalStore()

Used internally in state management libs, like Redux

But have you ever thought about using it in your own app code?

πŸ’‘ It could be useful & even prevent some React re-renders

πŸ‘‡ 🧡 Image
Let's start with a real-world problem.

Imagine you are using React-Router and call useLocation() in a few places

➑️ do some conditional rendering depending on pathname, hash, ?search query-string... Image
There are a few potential performance problems, for example:

- whenever you click on hash link, components reading only pathname will re-render ➑️ useless

- whenever you update the ?search querystring link, components reading only pathname or hash will re-render ➑️ useless
Read 13 tweets
May 4, 2022
🧡 This Week In React

πŸ‘‰ Click To Component
πŸ‘‰ Zag
πŸ‘‰ Why I don't miss React
πŸ‘‰ Next.js -> Remix
πŸ‘‰ Next.js ISR
πŸ‘‰ Next.js Router
πŸ‘‰ Component Party
πŸ‘‰ Convex
πŸ‘‰ Concurrent React
πŸ‘‰ Tilg
πŸ‘‰ RN 0.69 RC
πŸ‘‰ Expo 45
πŸ‘‰ RN-Skia, Graph
πŸ‘‰ TS Error Translator

More by βœ‰οΈ

Details πŸ‘‡ Image
🧡 Intro

Great week for React-Native: 0.69 RC, Expo 45, Skia...

New cool toys: Zag, Tilg, Click-To-Component, Convex, Component Party, TS Error Translator...

βœ‰οΈ A lot more links in the email
(a few nice TypeScript and Wasm ones)

ThisWeekInReact.com
🧡 Click To Component by @ericclemmons

Option+Click a React component in your browser to instantly open the source file πŸ‘Œ

Looks very convenient and easy to set up!

Only VS Code, but other IDE support possible
(there's already a PR for Intellij πŸ€—)

github.com/ericclemmons/c…
Read 21 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

Don't want to be a Premium member but still want to support us?

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!

:(