diff --git a/packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js b/packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js index f44605571f9f0..1816936bef676 100644 --- a/packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js +++ b/packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js @@ -104,7 +104,7 @@ describe('ReactDOMFizzServer', () => { console.error = (error, ...args) => { if ( typeof error !== 'string' || - error.indexOf('ReactDOM.useFormState has been deprecated') === -1 + error.indexOf('ReactDOM.useFormState has been renamed') === -1 ) { originalConsoleError(error, ...args); } diff --git a/packages/react-dom/src/__tests__/ReactDOMForm-test.js b/packages/react-dom/src/__tests__/ReactDOMForm-test.js index 2d7a34aa75cfd..ba721c215fc64 100644 --- a/packages/react-dom/src/__tests__/ReactDOMForm-test.js +++ b/packages/react-dom/src/__tests__/ReactDOMForm-test.js @@ -66,7 +66,7 @@ describe('ReactDOMForm', () => { console.error = (error, ...args) => { if ( typeof error !== 'string' || - error.indexOf('ReactDOM.useFormState has been deprecated') === -1 + error.indexOf('ReactDOM.useFormState has been renamed') === -1 ) { originalConsoleError(error, ...args); } diff --git a/packages/react-reconciler/src/ReactFiberHooks.js b/packages/react-reconciler/src/ReactFiberHooks.js index 1a501df0eb0eb..a7f5a637b7349 100644 --- a/packages/react-reconciler/src/ReactFiberHooks.js +++ b/packages/react-reconciler/src/ReactFiberHooks.js @@ -395,8 +395,8 @@ function warnOnUseFormStateInDev(): void { didWarnAboutUseFormState.add(componentName); console.error( - 'ReactDOM.useFormState has been deprecated and replaced by ' + - 'React.useActionState. Please update %s to use React.useActionState.', + 'ReactDOM.useFormState has been renamed to React.useActionState. ' + + 'Please update %s to use React.useActionState.', componentName, ); }