Skip to content

Commit 8196872

Browse files
Ikko Ashimineeps1lon
andauthored
[Float] Fix typo in ReactDOMResourceValidation.js (#25798)
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
1 parent 5dfc485 commit 8196872

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/react-dom-bindings/src/shared/ReactDOMResourceValidation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ export function validateURLKeyedUpdatedProps(
548548
}
549549
}
550550
console.error(
551-
'A %s with %s "%s" recieved new props with different values from the props used' +
551+
'A %s with %s "%s" received new props with different values from the props used' +
552552
' when this Resource was first rendered. React will only use the props provided when' +
553553
' this resource was first rendered until a new %s is provided. Unlike conventional' +
554554
' DOM elements, Resources instances do not have a one to one correspondence with Elements' +

packages/react-dom/src/__tests__/ReactDOMFloat-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4711,7 +4711,7 @@ describe('ReactDOMFloat', () => {
47114711
expect(() => {
47124712
expect(Scheduler).toFlushWithoutYielding();
47134713
}).toErrorDev([
4714-
'Warning: A style Resource with href "foo" recieved new props with different values from the props used' +
4714+
'Warning: A style Resource with href "foo" received new props with different values from the props used' +
47154715
' when this Resource was first rendered. React will only use the props provided when' +
47164716
' this resource was first rendered until a new href is provided. Unlike conventional' +
47174717
' DOM elements, Resources instances do not have a one to one correspondence with Elements' +
@@ -4720,7 +4720,7 @@ describe('ReactDOMFloat', () => {
47204720
'\n data-something-extra: missing or null in latest props, "extra" in original props' +
47214721
'\n data-something-new: "new" in latest props, missing or null in original props' +
47224722
'\n precedence: "fu" in latest props, "foo" in original props',
4723-
'Warning: A script Resource with src "sfoo" recieved new props with different values from the props used' +
4723+
'Warning: A script Resource with src "sfoo" received new props with different values from the props used' +
47244724
' when this Resource was first rendered. React will only use the props provided when' +
47254725
' this resource was first rendered until a new src is provided. Unlike conventional' +
47264726
' DOM elements, Resources instances do not have a one to one correspondence with Elements' +

0 commit comments

Comments
 (0)