diff --git a/packages/react-refresh/src/ReactFreshBabelPlugin.js b/packages/react-refresh/src/ReactFreshBabelPlugin.js index 49b0dce0f76ae..4171893e41ddd 100644 --- a/packages/react-refresh/src/ReactFreshBabelPlugin.js +++ b/packages/react-refresh/src/ReactFreshBabelPlugin.js @@ -226,8 +226,8 @@ export default function(babel, opts = {}) { case 'React.useRef': case 'useContext': case 'React.useContext': - case 'useImperativeMethods': - case 'React.useImperativeMethods': + case 'useImperativeHandle': + case 'React.useImperativeHandle': case 'useDebugValue': case 'React.useDebugValue': return true;