diff --git a/packages/react-reconciler/src/ReactFiberHooks.js b/packages/react-reconciler/src/ReactFiberHooks.js index 66a390ebb81..9a4183304b5 100644 --- a/packages/react-reconciler/src/ReactFiberHooks.js +++ b/packages/react-reconciler/src/ReactFiberHooks.js @@ -3565,7 +3565,8 @@ function dispatchReducerAction( console.error( "State updates from the useState() and useReducer() Hooks don't support the " + 'second callback argument. To execute a side effect after ' + - 'rendering, declare it in the component body with useEffect().', + 'rendering, declare it inside the component function using useEffect(), not during render.', + ); } }