This Week In React #74: React 18, Gatsby 4, Context, React-Native, cross-platform, flashbacks, shadows, Corepack, webperf...
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 π https://t.co/iu443Z7iuE
1/ @dan_abramov shared a long React 18 update, mostly for course creators:
https://t.co/cgnkOdqzOk
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 https://t.co/JpTbynjZyT
2/ @gatsbyjs 4 introduced by @schaudustin
https://t.co/VQh6V9CPeq
- 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
https://t.co/H0G9okxsnr
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) https://t.co/i4KsAJogQ3
5/ @joshwcomeau explains how to create coherent and realistic shadows in CSS
https://t.co/eyv1xWxwWc
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 https://t.co/ZMBkXOLOpa
6/ π§ How React got Traction
https://t.co/CgjISQr13w
@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 π) https://t.co/6U174oIjMi