UNDERSTANDING REACT COMPILER
React Compiler optimizes React components by automatically adding memoization to improve performance, reducing the need for manual optimization by developers. It transforms code into a more efficient version that caches values and memoizes results. However, this optimization comes at the cost of increased memory usage, which can be a problem when dealing with large amounts of data.