Fix typo in warning text (#18103)
Mentioned in #18090.
Sophie Alpert committed
Feb 28, 2020 at 03:53 UTC
7ea4e4111f0615d465d2750b4fefd8b98b22ef1d
1 file changed
+4
-4
packages/react-reconciler/src/ReactFiberCommitWork.js
+4
-4
@@ -282,7 +282,7 @@ function commitBeforeMutationLifeCycles(
282
'Expected %s state to match memoized state before ' +
283
'getSnapshotBeforeUpdate. ' +
284
'This might either be because of a bug in React, or because ' +
285
- 'a component reassigns its own `this.props`. ' +
285
+ 'a component reassigns its own `this.state`. ' +
286
'Please file an issue.',
287
getComponentName(finishedWork.type) || 'instance',
288
);
@@ -490,7 +490,7 @@ function commitLifeCycles(
490
'Expected %s state to match memoized state before ' +
491
'componentDidMount. ' +
492
'This might either be because of a bug in React, or because ' +
493
- 'a component reassigns its own `this.props`. ' +
493
+ 'a component reassigns its own `this.state`. ' +
494
'Please file an issue.',
495
getComponentName(finishedWork.type) || 'instance',
496
);
@@ -529,7 +529,7 @@ function commitLifeCycles(
529
'Expected %s state to match memoized state before ' +
530
'componentDidUpdate. ' +
531
'This might either be because of a bug in React, or because ' +
532
- 'a component reassigns its own `this.props`. ' +
532
+ 'a component reassigns its own `this.state`. ' +
533
'Please file an issue.',
534
getComponentName(finishedWork.type) || 'instance',
535
);
@@ -566,7 +566,7 @@ function commitLifeCycles(
566
'Expected %s state to match memoized state before ' +
567
'processing the update queue. ' +
568
'This might either be because of a bug in React, or because ' +
569
- 'a component reassigns its own `this.props`. ' +
569
+ 'a component reassigns its own `this.state`. ' +
570
'Please file an issue.',
571
getComponentName(finishedWork.type) || 'instance',
572
);