Skip to content
0:00 / 0:00

#reactforget#reactcompiler#memoization

React without memo

React Conf

36K subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 on Hacker News.
  • Presented by Xuan Huang, React core team member
  • Made by the vendor. The company whose product it covers made or sponsored it.
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

150K views4 years ago1 recommendation

Web developmentProgramming languagesReactVue, Svelte, Angular and othersCompilers and interpreters

Xuan Huang introduces React Forget, an experimental compiler designed to automatically memoize components and values to eliminate manual optimization.

Xuan Huang (黄玄)

Why it's here

1 person recommends this

What people say. Engineers shared this to show the direction of React's automatic performance optimizations and compiler-driven memoization.

brundolfon Hacker News • Recommends

On “Not using useCallback is premature optimization”

For those pushing back, I wanted to share this talk given at a recent React Conf: link to this video The idea (still just an internal prototype) is that one day your compiler might automatically memoize all React components and intermediate values for you. It obviously would be great to skip all the syntax noise, as well as the linter-enforced rules around correctly maintaining dependency arrays, etc. But I think a big takeaway from this talk is that the React team sees memoizing as the norm . It is something to do by default , so much so that it may happen without your intervention one day. Immutability and value identity-based comparison are core to React. Violating these is the only way memoization…

ksbrooksjron Hacker News • Mentions

On “Ten Years of TypeScript”

…nents at compile-time to avoid all of the gotchas that hooks have (and improve performance) 1. In terms of making all of ts erasable, you can technically just write all your type definitions using js-doc comments, in which case the compiler can just be run with the --noEmit flag, and then the code is fully valid js without any modifications. 1 link to this video…

matvpon Hacker News • Mentions

On “Next.js 13.4”

There isn't much info out there yet, but this video is a small preview: link to this video The latest update is mentioned in the March 2023 blog post: link