React course: is memoization still relevant? #29207
Replies: 2 comments
-
I haven't tried 19 yet to confirm, but my understanding is that the React compiler (which will handle performance aspects such as memoization automatically) is a separate thing from React 19, that the compiler is still in beta at this time, and that it will be an opt in thing that requires modifying the build step of projects it is used in. Either way I think covering manual memoization will still be relevant for quite some time. I know of projects at my work that are still using 16.8. Once the compiler is out as stable it is probably something we should talk about though. Tagging @TheOdinProject/react for awareness/thoughts and to correct me if yall know anything I don't. |
Beta Was this translation helpful? Give feedback.
-
^ seconded The "automatic memoization" is a React Compiler feature which is separate from React 19. The following article is an informative read https://www.developerway.com/posts/react-compiler-soon We can open this convo after the compiler is stable. |
Beta Was this translation helpful? Give feedback.
-
Checks
Describe your suggestion
If I understood it correctly, React 19 will automatically memoize most expensive calculations, like the one described in the screenshot below:
I still don't know enough to determine whether the information is accurate, but I thought to point it out for you to look at :)
Path
Node / JS
Lesson Url
https://www.theodinproject.com/lessons/node-path-react-new-refs-and-memoization
(Optional) Discord Name
No response
(Optional) Additional Comments
No response
Beta Was this translation helpful? Give feedback.
All reactions