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 🀣
3/ @PierreOuannes shared how to use React Context like a Pro

devtrium.com/posts/how-use-…

Multiple tips I agree with, some not widely known:

- encapsulate your context behind custom provider/hooks

- memoize value

- split in 2 contexts (state + update API)
4/ @oedotme explains how to create your own file-based routing on top of React-Router

omarelhawary.me/blog/file-base…

Inspired by Next.js APIs

Using Vite (globEager) but this can probably be done with Webpack too IMHO (require.context)
5/ @joshwcomeau explains how to create coherent and realistic shadows in CSS

joshwcomeau.com/css/designing-…

Stop randomly picking box-shadow values!

Use your intuition of how the physical world and lightning works, and techniques like shadow layering

Provides Styled-Components impl
6/ 🎧 How React got Traction

swyx.transistor.fm/episodes/how-r…

@swyx's flashback of React history with this old podcast sample:

- initial VS second introduction

- role of @floydophone and @swannodette 's famous blog post, convincing FP enthusiasts (including me 😜)
7/ 🎧 @vercel and Next.js with @rauchg & @logrocket

podrocket.logrocket.com/vercel

Various interesting insights:

Relationship of DX & UX

Particularly liked the SEO part (Web Vitals, RUM, AMP, CSR...)

Next.js conf (26 Oct): a promise of exciting announcements πŸ€—
8/ 🧡 10 State Management lessons by @housecor

Most I can agree with 😜

9/ Readability Analysis Of Implementing Custom Hooks by @keraito

chakshunyu.com/blog/react-rea…

Another interesting analysis of the readability tradeoffs of multiple possible React implementations
10/ TypeScript + React: Children types are broken by @ddprrt

fettblog.eu/react-types-fo…

Describes how one very old typing in React typedefs prevents good typing of the children props. And now it's hard to change it πŸ˜….

But you can fix it in your codebase
11/ Running React Native everywhere by @mazzarolomatteo

mmazzarolo.com/blog/2021-09-1…

Matteo published a boilerplate + tooling for developing cross-platform apps. Explains how it works in a series.

πŸ€” strong opinion: use different RN versions per platform (macos is still 0.63)
12/ 🎧 React Native's Near Death Experience (@swyx mixtape extract from recent @sourcegraph podcast)

swyx.transistor.fm/episodes/react…

Another flashback with @vjeux about the history of RN

React-iOS born from a hackathon to solve mobile dev velocity

Story almost ended there πŸ˜†
13/ React-Native-Windows content by @callstackio

Series of 3 blog posts by Bartosz Klonowski + podcast with @grabbou

Various insights, from business to tech: advantages over Electron, details about brownfield RN Windows apps...

callstack.com/blog/why-use-r…
14/ Twitter's div Soup and Uglyfied CSS, Explained by @giuseppegurgone

Explains some details about React-Native-Web, used by Twitter

Mention atomic classes, accessibility, devtools...

giuseppegurgone.com/twitter-html/
15/ React-Native-Screens 3.7.0 by @swmansion

The new onTransitionProgress event on the native stack enables a few new animated use-cases πŸ€—

16/ Epic vs Apple

"Apple must allow other forms of in-app purchase, rules judge in Epic v. Apple"

Not strictly related to RN, but still quite important news for the mobile industry :)

theverge.com/2021/9/10/2266…
17/ Flutter vs React-Native by @Nash0x7E2

getstream.io/blog/flutter-v…

Article from a Flutter dev from @getstream_io , maintaining SDKs for both platforms.

A bit biased, still an interesting comparison (aware of JSI, maybe not React-Native Skia πŸ˜†)
18/ Corepack in Node.js 16.9 by @arcanis (experimental)

nodejs.org/dist/latest-v1…

Allows better integration of Yarn & pnmp in Node.js

Can ensure everyone uses same version

Biasing toward npm usage was not really fair, it's a lucrative company
19/ Small Bundles, Fast Pages: What To Do With Too Much JavaScript by @benschwarz

calibreapp.com/blog/bundle-si…

Good perf tips, many of them can be applied to React apps

Discovered react-live-chat-loader, allowing performant integration of widgets like Intercom
20/ @replayio by @jasonlaster11

replay.io

New kind of time-travel debugging experience

So many thought leaders say it's awesome

Works with any app: not just Redux, and also plan to support backend πŸ˜†
21/ @_buildspace

A new project-based course for web devs that want to learn crypto / web

Many said it's a really nice new way to learn while leveraging your web / JS / React knowledge

buildspace.so
22/ Web Vitals patterns

"A collection of common UX patterns optimized for Core Web Vitals. This collection includes patterns that are often tricky to implement without hurting your Core Web Vitals scores."

web.dev/patterns/web-v…
23/ Petite Vue

github.com/vuejs/petite-v…

A new 6Kb subset of Vue, with most of the features, by Evan You

Looks like the equivalent of Preact for Vue
24) TypeScript: In defense of any

fettblog.eu/typescript-any…

Stefan Baumgartner says it's fine to use any if you know what you are doing

Link for your colleague: giveupanduseany.com πŸ˜†
🎬 THREAD END!

Follow @sebastienlorber for the next threads!

Going to turn these threads into emails (November)

βœ‰οΈ Pre-subscribe here: getrevue.co/profile/thiswe…

❀️ Like this thread 🧡 ?
πŸ™ Please Retweet πŸ™
πŸ‘‡ Follow the link πŸ‘‡

Previous editions?

Keep reading πŸ‘‡

β€’ β€’ β€’

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

23 Aug
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
14 Jun
This week in React

πŸ‘‰ React 18 links:
- Plan for React 18
- Working Group
- Intro
- Story
- Now what?
- With TS?
- TL.DR Video

πŸ‘‰ Redux Toolkit Query
πŸ‘‰ Don't overabstract comps
πŸ‘‰ React-Native 0.65 RC
πŸ‘‰ Reanimated 2.3 layout animations
πŸ‘‰ Astro
πŸ‘‰ Vue 3.1
πŸ‘‰ ..

🧡 Details πŸ‘‡
The @reactjs team published a new post

The Plan For React 18:
- first alpha published
- mention available features
- introducing the working group
- gradual adoption strategy
- stable release expected in a few months

reactjs.org/blog/2021/06/0…
The React 18 working group is a GitHub repo containing Read-only discussions (unless you are invited to contribute).

Already contains a lot of new useful information to process

github.com/reactwg/react-…
Read 16 tweets
17 May
This week in React

πŸ‘‰ Docusaurus 2 Beta
πŸ‘‰ Chose React over Vue
πŸ‘‰ (un)controlled inputs
πŸ‘‰ Eliminate problems
πŸ‘‰ Recoil 0.3
πŸ‘‰ Coinbase -> React Native
πŸ‘‰ Stripe-React-Native
πŸ‘‰ Hermes on iOS
πŸ‘‰ Babel drama
πŸ‘‰ TypeScript 4.3 RC
πŸ‘‰ TS 7 sources of unsoundness
...

🧡 Details πŸ‘‡
We released the @docusaurus v2 beta!
It's easier than ever to create a doc website!

v1 feature parity is here with i18n, and core features are stable enough!

docusaurus.io/blog/2021/05/1…

Check our best documentation websites here:
docusaurus.io/showcase?tags=…
Bill gives good reasons why he prefers React over Vue here:
- TS compatibility, JSX is just JavaScript
- Functional purity

javascript.plainenglish.io/why-i-finally-…
Read 17 tweets
3 May
This week in React

πŸ‘‰ Remix v1 beta
πŸ‘‰ Next.js 10.2
πŸ‘‰ Redux 4.1
πŸ‘‰ Babel 7.14
πŸ‘‰ Safari 14.1
πŸ‘‰ Suspense is killing me
πŸ‘‰ Key prop
πŸ‘‰ Advanced Framer Motion
πŸ‘‰ Design system: Stitches & Radix
πŸ‘‰ Airtable Flow ➑️ TS
πŸ‘‰ Inspx
πŸ‘‰ Expo + Next.js
πŸ‘‰ Mighty
...

🧡🧡🧡 Details πŸ‘‡πŸ‘‡πŸ‘‡
Remix v1 first beta!

The React meta-framework built by @mjackson & @ryanflorence launched as a 1h30 Youtube stream:

The @vercel team is working hard to improve the Next.js DX even more.

10.2 release improves startup time, hot reload, and many other things.

The Webpack 5 rollout has started for simpler Next.js sites and should also improve rebuild times significantly

nextjs.org/blog/next-10-2
Read 20 tweets
12 Apr
This week in React

πŸ‘‰ React-Hook-Form 7
πŸ‘‰ React-UX-Form
πŸ‘‰ Dumi
πŸ‘‰ Figma-To-React
πŸ‘‰ Recoil 0.2
πŸ‘‰ Hermes Intl + OTA
πŸ‘‰ Nextgen buildtools
πŸ‘‰ Bundless
πŸ‘‰ Microsite
πŸ‘‰ Let ➑️ Const
πŸ‘‰ How to test UI
πŸ‘‰ XState Catalogue
πŸ‘‰ Vue 3 ❌ IE11
πŸ‘‰ DevTools ➑️ TS

🧡🧡🧡 Details πŸ‘‡πŸ‘‡πŸ‘‡
React-Hook-Form v7 was released by @bluebill1049

react-hook-form.com/migrate-v6-to-…

Most exciting thing is probably leveraging TS 4.1 template literal types and being able to type-check the form against field-name typos!
New React-UX-Form library by @zoontek

Also based on a subscription model and per-field validation (like React-Hook-Form), also using an interesting "validation strategy" concept.

Compat with React and React-Native.

github.com/swan-io/react-…
Read 18 tweets
5 Apr
This week in React

πŸ‘‰ React Labs
πŸ‘‰ Next.js 10.1
πŸ‘‰ Dependency Injection
πŸ‘‰ Fastest Text Update
πŸ‘‰ Tuples?
πŸ‘‰ React React Errors
πŸ‘‰ Expo 41
πŸ‘‰ RN Timeline
πŸ‘‰ Web: Flutter vs RN?
πŸ‘‰ TS 4.3 beta
πŸ‘‰ Coolify
πŸ‘‰ Storybook 6.2
πŸ‘‰ Change Array by copy
...

🧡🧡🧡 Details πŸ‘‡πŸ‘‡πŸ‘‡
React Labs: @abernathyca presented a new official video series of technical deep dives in the React research.


The first video is a Q&A about server components:
Next.js 10.1 by @vercel contains significant improvements to Fast Refresh, install time, images

Webpack5 will roll out progressively

The Next.js team plans to make DX even faster.

More high-level tools get released: Shopify integration, Nextra blog...

nextjs.org/blog/next-10-1
Read 16 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 Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(