diff --git a/packages/react-reconciler/src/ReactFiberCommitWork.js b/packages/react-reconciler/src/ReactFiberCommitWork.js index 16653ea928..42aa93a356 100644 --- a/packages/react-reconciler/src/ReactFiberCommitWork.js +++ b/packages/react-reconciler/src/ReactFiberCommitWork.js @@ -117,7 +117,7 @@ export function logError(boundary: Fiber, errorInfo: CapturedValue) { const suppressLogging = e && e.suppressReactErrorLogging; if (!suppressLogging) { // Rethrow it from a clean stack because this function is assumed to never throw. - // We can't safely call console.error() here because it could *also* throw if overriden. + // We can't safely call console.error() here because it could *also* throw if overridden. // https://github.com/facebook/react/issues/13188 setTimeout(() => { throw e; diff --git a/packages/react-reconciler/src/ReactFiberScheduler.js b/packages/react-reconciler/src/ReactFiberScheduler.js index fe02ee21f5..219184170e 100644 --- a/packages/react-reconciler/src/ReactFiberScheduler.js +++ b/packages/react-reconciler/src/ReactFiberScheduler.js @@ -1250,7 +1250,7 @@ function renderRoot( let msUntilTimeout = nextLatestAbsoluteTimeoutMs - currentTimeMs; msUntilTimeout = msUntilTimeout < 0 ? 0 : msUntilTimeout; - // TODO: Account for the Just Noticable Difference + // TODO: Account for the Just Noticeable Difference const rootExpirationTime = root.expirationTime; onSuspend( diff --git a/packages/react-reconciler/src/ReactFiberUnwindWork.js b/packages/react-reconciler/src/ReactFiberUnwindWork.js index 35042016f3..1fd1d4fe0e 100644 --- a/packages/react-reconciler/src/ReactFiberUnwindWork.js +++ b/packages/react-reconciler/src/ReactFiberUnwindWork.js @@ -286,8 +286,8 @@ function throwException( // time. First, find the earliest uncommitted expiration time in the // tree, including work that is suspended. Then subtract the offset // used to compute an async update's expiration time. This will cause - // high priority (interactive) work to expire earlier than neccessary, - // but we can account for this by adjusting for the Just Noticable + // high priority (interactive) work to expire earlier than necessary, + // but we can account for this by adjusting for the Just Noticeable // Difference. const earliestExpirationTime = findEarliestOutstandingPriorityLevel( root, diff --git a/packages/react-reconciler/src/__tests__/ReactIncrementalErrorReplay-test.internal.js b/packages/react-reconciler/src/__tests__/ReactIncrementalErrorReplay-test.internal.js index 6c97c46b82..477ce71a74 100644 --- a/packages/react-reconciler/src/__tests__/ReactIncrementalErrorReplay-test.internal.js +++ b/packages/react-reconciler/src/__tests__/ReactIncrementalErrorReplay-test.internal.js @@ -14,7 +14,7 @@ describe('ReactIncrementalErrorReplay-test', () => { // Note: this test is fragile and relies on internals. // We almost always try to avoid such tests, but here the cost of // the list getting out of sync (and causing subtle bugs in rare cases) - // is higher than the cost of maintaing the test. + // is higher than the cost of maintaining the test. const { // Any Fiber factory function will do. createHostRootFiber,