[Float] Fix typo in ReactDOMResourceValidation.js (#25798)
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
Ikko Ashimine committed
Dec 8, 2022 at 14:09 UTC
81968727985a7afe6fc05d77a75d8a53ab10e39b
2 files changed
+3
-3
packages/react-dom-bindings/src/shared/ReactDOMResourceValidation.js
+1
-1
@@ -548,7 +548,7 @@ export function validateURLKeyedUpdatedProps(
548
}
549
}
550
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' +
552
' when this Resource was first rendered. React will only use the props provided when' +
553
' this resource was first rendered until a new %s is provided. Unlike conventional' +
554
' DOM elements, Resources instances do not have a one to one correspondence with Elements' +
packages/react-dom/src/__tests__/ReactDOMFloat-test.js
+2
-2
@@ -4711,7 +4711,7 @@ describe('ReactDOMFloat', () => {
4711
expect(() => {
4712
expect(Scheduler).toFlushWithoutYielding();
4713
}).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' +
4715
' when this Resource was first rendered. React will only use the props provided when' +
4716
' this resource was first rendered until a new href is provided. Unlike conventional' +
4717
' DOM elements, Resources instances do not have a one to one correspondence with Elements' +
@@ -4720,7 +4720,7 @@ describe('ReactDOMFloat', () => {
4720
'\n data-something-extra: missing or null in latest props, "extra" in original props' +
4721
'\n data-something-new: "new" in latest props, missing or null in original props' +
4722
'\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' +
4724
' when this Resource was first rendered. React will only use the props provided when' +
4725
' this resource was first rendered until a new src is provided. Unlike conventional' +
4726
' DOM elements, Resources instances do not have a one to one correspondence with Elements' +