optimizes React applications, ensuring that only the minimal parts of components and hooks will re-render when state changes. The compiler also validates that components and hooks follow the Rules of React. https://github.com/facebook/react/blob/main/compiler/README.md React Compiler is a compiler that optimizes React applications 訳: React Compiler はReact アプリケーションを最適化するコンパイラ 7
this reduces communication about whether to memoise or not. 訳: メモ化するしないのコミュニケーションも減らせる a. 「Is memoing here necessary? 」 b. 「Necessary because 〇〇 is 〇〇」 18
think this code is an error? 訳: このコードはエラーになると思いますか? function Component(props) { const items = []; for (const x of props.items) { x.modified = true; items.push(x); } return items; } 20
InvalidReact: Mutating component props or hook arguments is not allowed. Consider using a local variable instead (4:4) function Component(props) { const items = []; for (const x of props.items) { x.modified = true; items.push(x); } return items; } 21