diff --git a/fixtures/fiber-debugger/src/describeFibers.js b/fixtures/fiber-debugger/src/describeFibers.js
index cee652af65f1f..0e082f0b07e0c 100644
--- a/fixtures/fiber-debugger/src/describeFibers.js
+++ b/fixtures/fiber-debugger/src/describeFibers.js
@@ -90,17 +90,17 @@ export default function describeFibers(rootFiber, workInProgress) {
const workInProgressID = acknowledgeFiber(workInProgress);
let currentIDs = new Set();
- function markAsCurent(id) {
+ function markAsCurrent(id) {
currentIDs.add(id);
const fiber = descriptions[id];
if (fiber.sibling) {
- markAsCurent(fiber.sibling);
+ markAsCurrent(fiber.sibling);
}
if (fiber.child) {
- markAsCurent(fiber.child);
+ markAsCurrent(fiber.child);
}
}
- markAsCurent(rootID);
+ markAsCurrent(rootID);
return {
descriptions,
diff --git a/packages/react-dom/src/__tests__/utils/ReactDOMServerIntegrationTestUtils.js b/packages/react-dom/src/__tests__/utils/ReactDOMServerIntegrationTestUtils.js
index d207a0faa1f6a..d45462e42c5b1 100644
--- a/packages/react-dom/src/__tests__/utils/ReactDOMServerIntegrationTestUtils.js
+++ b/packages/react-dom/src/__tests__/utils/ReactDOMServerIntegrationTestUtils.js
@@ -41,7 +41,7 @@ module.exports = function(initModules) {
if (console.error.calls && console.error.calls.reset) {
console.error.calls.reset();
} else {
- // TODO: Rewrite tests that use this helper to enumerate expeceted errors.
+ // TODO: Rewrite tests that use this helper to enumerate expected errors.
// This will enable the helper to use the .toWarnDev() matcher instead of spying.
spyOnDev(console, 'error');
}
diff --git a/packages/react-dom/src/events/__tests__/ChangeEventPlugin-test.internal.js b/packages/react-dom/src/events/__tests__/ChangeEventPlugin-test.internal.js
index 36abb97b6e7fa..03d2cddeaaf84 100644
--- a/packages/react-dom/src/events/__tests__/ChangeEventPlugin-test.internal.js
+++ b/packages/react-dom/src/events/__tests__/ChangeEventPlugin-test.internal.js
@@ -661,7 +661,7 @@ describe('ChangeEventPlugin', () => {
type="text"
value={controlledValue}
onChange={() => {
- // Does nothing. Parent handler is reponsible for updating.
+ // Does nothing. Parent handler is responsible for updating.
}}
/>
diff --git a/packages/react-reconciler/src/__tests__/ReactIncremental-test.internal.js b/packages/react-reconciler/src/__tests__/ReactIncremental-test.internal.js
index 8a53360c7882f..69bd1dd0aa907 100644
--- a/packages/react-reconciler/src/__tests__/ReactIncremental-test.internal.js
+++ b/packages/react-reconciler/src/__tests__/ReactIncremental-test.internal.js
@@ -2430,7 +2430,7 @@ describe('ReactIncremental', () => {
);
// Trigger an update in the middle of the tree
- // This is necessary to reproduce the error as it curently exists.
+ // This is necessary to reproduce the error as it currently exists.
instance.setState({
throwError: true,
});
diff --git a/packages/react-reconciler/src/__tests__/ReactIncrementalErrorHandling-test.internal.js b/packages/react-reconciler/src/__tests__/ReactIncrementalErrorHandling-test.internal.js
index 079a570202ea9..43d2570c99f80 100644
--- a/packages/react-reconciler/src/__tests__/ReactIncrementalErrorHandling-test.internal.js
+++ b/packages/react-reconciler/src/__tests__/ReactIncrementalErrorHandling-test.internal.js
@@ -85,7 +85,7 @@ describe('ReactIncrementalErrorHandling', () => {
,
);
- // Start rendering asynchronsouly
+ // Start rendering asynchronously
ReactNoop.flushThrough([
'ErrorBoundary (try)',
'Indirection',
@@ -178,7 +178,7 @@ describe('ReactIncrementalErrorHandling', () => {
,
);
- // Start rendering asynchronsouly
+ // Start rendering asynchronously
ReactNoop.flushThrough([
'ErrorBoundary (try)',
'Indirection',
@@ -276,7 +276,7 @@ describe('ReactIncrementalErrorHandling', () => {
// Schedule a low priority update to hide the child
parent.current.setState({hideChild: true});
- // Before the low priority update is flushed, synchronsouly trigger an
+ // Before the low priority update is flushed, synchronously trigger an
// error in the child.
ReactNoop.flushSync(() => {
ReactNoop.render();
diff --git a/packages/react/src/__tests__/ReactJSXElementValidator-test.js b/packages/react/src/__tests__/ReactJSXElementValidator-test.js
index 31831a29ac634..24fe79fdb1bf2 100644
--- a/packages/react/src/__tests__/ReactJSXElementValidator-test.js
+++ b/packages/react/src/__tests__/ReactJSXElementValidator-test.js
@@ -323,7 +323,7 @@ describe('ReactJSXElementValidator', () => {
);
});
- it('should warn if getDefaultProps is specificed on the class', () => {
+ it('should warn if getDefaultProps is specified on the class', () => {
class GetDefaultPropsComponent extends React.Component {
render() {
return {this.props.prop};
diff --git a/packages/react/src/__tests__/ReactProfiler-test.internal.js b/packages/react/src/__tests__/ReactProfiler-test.internal.js
index 127d47ea216e3..b1593ff31c157 100644
--- a/packages/react/src/__tests__/ReactProfiler-test.internal.js
+++ b/packages/react/src/__tests__/ReactProfiler-test.internal.js
@@ -503,7 +503,7 @@ describe('Profiler', () => {
});
// Only call profile updates for paths that have re-rendered
- // Since "inner" is beneath a pure compoent, it isn't called
+ // Since "inner" is beneath a pure component, it isn't called
expect(callback).toHaveBeenCalledTimes(2);
expect(callback.mock.calls[0][0]).toBe('middle');
expect(callback.mock.calls[1][0]).toBe('outer');
@@ -667,7 +667,7 @@ describe('Profiler', () => {
// Simulate time moving forward while frame is paused.
advanceTimeBy(50); // 10 -> 60
- // Flush the remaninig work,
+ // Flush the remaining work,
// Which should take an additional 10ms of simulated time.
expect(renderer).toFlushAndYield(['Yield:10', 'Yield:17']);
expect(callback).toHaveBeenCalledTimes(2);
diff --git a/packages/shared/reactProdInvariant.js b/packages/shared/reactProdInvariant.js
index effc7f7409c81..482b2e342ef48 100644
--- a/packages/shared/reactProdInvariant.js
+++ b/packages/shared/reactProdInvariant.js
@@ -23,7 +23,7 @@ function reactProdInvariant(code: string): void {
for (let argIdx = 0; argIdx < argCount; argIdx++) {
url += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]);
}
- // Rename it so that our build transform doesn't atttempt
+ // Rename it so that our build transform doesn't attempt
// to replace this invariant() call with reactProdInvariant().
const i = invariant;
i(