React Labs: What We've Been Working On

https://react.dev/blog/2024/02/15/react-labs-what-we-have-been-working-on-february-2024

8 points · 2 comments · view on lemmy.world

2 Comments

aeharding@lemmy.world · 2 pts · 2y (1 reply)

Lots of great improvements to look forward to this year!

  • useMemo, useCallback, memo → React Compiler
  • forwardRef → ref is a prop
  • React.lazy → RSC, promise-as-child
  • useContextuse(Context)
  • throw promiseuse(promise)

Source : tweet by React maintainer Andrew Clark

Edit: Ugh, lemmy.world ate my HTML. Please upgrade to 0.19 ☹️

aeharding@lemmy.world · 3 pts · 2y

And btw, if you missed it, React Compiler is essentially React Forget

Good video here: https://www.youtube.com/watch?v=qOQClO3g8-Y