Comment by znpy
1 day ago
Looking at firefox memory usage, i’m afraid the issue there is not memory safety but rather the average javascript developer being completely and blissfully unaware of and careless about memory memory usage of the software they write
It'd be interesting to understand how much of that memory pressure is down to the devs compared with the frameworks now trying to cache everything in sight.
React Compiler automatically memoizes values and functions, reducing the need for manual useMemo calls. You can use the compiler to handle memoization automatically.
https://react.dev/reference/react/useMemo