diff --git a/compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Program.ts b/compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Program.ts index 2880e9283c..673a63b2c3 100644 --- a/compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Program.ts +++ b/compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Program.ts @@ -895,7 +895,7 @@ function hasMemoCacheFunctionImport( } function isHookName(s: string): boolean { - return /^use[A-Z0-9]/.test(s); + return s === 'use' || /^use[A-Z0-9]/.test(s); } /*