What’s React Forget? React without memo

南小北
3 min readDec 10, 2021

--

This is @Huxpro share on React Conf 2021.

A brief introduction.

  1. First is a TodoList code ↑↑

2. Every time change the color, getFiltered executes ↑↑

3. So we have to wrap it all with useMemo and useCallback ↑↑

4. React’s goal is to make it easier to build great UX, not harder ↑↑

5. Hooks make code hard to read, and worry about breaking the memo ↑↑

6. Without memo, DX good, UX sucks, with memo, DX sucks, UX good ↑↑

7. What if we can write like this? logic is all memo, even .map() in JSX ↑↑

8.What if we can just write React without memo? ↑↑

9. What if a React compiler will auto memo all? that would be great ↑↑

10. This compiler is called React Forget. Auto memo. still under dev ↑↑

Full speech video:

What does this have to do with me? Of course it does!

First of all, I am a React developer! No, I’m not talking about this…

I didn’t watch the React conf live. I first read the following tweet on Twitter and mentioned an article in the reply.

Huh? This article seems interesting… Wait… Didn’t I write this article?!

Unexpectedly, I ate melons late at night. It was wonderful that I ate myself.

Yes, the article is here:

--

--