From 1f303e27c37384d55faefe173f37b06864c7ab5f Mon Sep 17 00:00:00 2001 From: Mo Beigi Date: Sat, 14 Feb 2026 22:29:06 +1100 Subject: [PATCH] Fix typos in hoisting warning messages --- .../react-dom-bindings/src/server/ReactFizzConfigDOM.js | 4 ++-- packages/react-dom/src/__tests__/ReactDOMFloat-test.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js b/packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js index a93c32a947f1..160c57e2b30c 100644 --- a/packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js +++ b/packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js @@ -2873,7 +2873,7 @@ function pushLink( if (rel === 'stylesheet' && typeof props.precedence === 'string') { if (typeof href !== 'string' || !href) { console.error( - 'React encountered a `` with a `precedence` prop and expected the `href` prop to be a non-empty string but ecountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop.', + 'React encountered a `` with a `precedence` prop and expected the `href` prop to be a non-empty string but encountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop.', getValueDescriptorExpectingObjectForWarning(href), ); } @@ -3113,7 +3113,7 @@ function pushStyle( if (__DEV__) { if (href.includes(' ')) { console.error( - 'React expected the `href` prop for a