一、先搞清楚:React Compiler到底在做什么 React Compiler的前身是React Forget。它的职责非常单一:自动为组件和Hooks添加缓存优化,让开发者不再需要手写useM