Fix typos (#16076)
Min ho Kim committed
Jul 8, 2019 at 20:51 UTC
2a0f6390ed657fa8e2c14c1cf6d9faa2f7b42525
12 files changed
+13
-13
fixtures/dom/src/components/fixtures/suspense/index.js
+1
-1
@@ -169,7 +169,7 @@ class TextInputFixtures extends React.Component {
169
the "Go" button.
170
</li>
171
<li>
172
- Intead of clicking "Go", which switches focus, press Command +
172
+ Instead of clicking "Go", which switches focus, press Command +
173
Enter (or Control + Enter on Windows, Linux).
174
</li>
175
</TestCase.Steps>
packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js
+1
-1
@@ -1149,7 +1149,7 @@ function collectRecommendations({
1149
let unnecessaryDependencies = new Set();
1150
let duplicateDependencies = new Set();
1151
declaredDependencies.forEach(({key}) => {
1152
- // Does this declared dep satsify a real need?
1152
+ // Does this declared dep satisfy a real need?
1153
if (satisfyingDependencies.has(key)) {
1154
if (suggestedDependencies.indexOf(key) === -1) {
1155
// Good one.
packages/react-reconciler/src/ReactFiber.js
+1
-1
@@ -217,7 +217,7 @@ export type Fiber = {|
217
// This field is only set when the enableProfilerTimer flag is enabled.
218
selfBaseDuration?: number,
219
220
- // Sum of base times for all descedents of this Fiber.
220
+ // Sum of base times for all descendants of this Fiber.
221
// This value bubbles up during the "complete" phase.
222
// This field is only set when the enableProfilerTimer flag is enabled.
223
treeBaseDuration?: number,
packages/react-reconciler/src/ReactFiberHooks.js
+1
-1
@@ -688,7 +688,7 @@ function updateReducer<S, I, A>(
688
}
689
690
hook.memoizedState = newState;
691
- // Don't persist the state accumlated from the render phase updates to
691
+ // Don't persist the state accumulated from the render phase updates to
692
// the base state unless the queue is empty.
693
// TODO: Not sure if this is the desired semantics, but it's what we
694
// do for gDSFP. I can't remember why.
packages/react-reconciler/src/ReactFiberThrow.js
+1
-1
@@ -260,7 +260,7 @@ function throwException(
260
sourceFiber.tag = IncompleteClassComponent;
261
} else {
262
// When we try rendering again, we should not reuse the current fiber,
263
- // since it's known to be in an inconsistent state. Use a force updte to
263
+ // since it's known to be in an inconsistent state. Use a force update to
264
// prevent a bail out.
265
const update = createUpdate(Sync, null);
266
update.tag = ForceUpdate;
packages/react-reconciler/src/ReactFiberWorkLoop.js
+1
-1
@@ -402,7 +402,7 @@ export function scheduleUpdateOnFiber(
402
// Flush the synchronous work now, wnless we're already working or inside
403
// a batch. This is intentionally inside scheduleUpdateOnFiber instead of
404
// scheduleCallbackForFiber to preserve the ability to schedule a callback
405
- // without immediately flushing it. We only do this for user-initated
405
+ // without immediately flushing it. We only do this for user-initiated
406
// updates, to preserve historical behavior of sync mode.
407
flushSyncCallbackQueue();
408
}
packages/react-reconciler/src/SchedulerWithReactIntegration.js
+1
-1
@@ -65,7 +65,7 @@ export const NoPriority: ReactPriorityLevel = 90;
65
66
export const shouldYield = Scheduler_shouldYield;
67
export const requestPaint =
68
- // Fall back gracefully if we're running an older verison of Scheduler.
68
+ // Fall back gracefully if we're running an older version of Scheduler.
69
Scheduler_requestPaint !== undefined ? Scheduler_requestPaint : () => {};
70
71
let syncQueue: Array<SchedulerCallback> | null = null;
packages/react-reconciler/src/__tests__/ReactHooksWithNoopRenderer-test.internal.js
+2
-2
@@ -1377,7 +1377,7 @@ describe('ReactHooksWithNoopRenderer', () => {
1377
});
1378
1379
act(() => {
1380
- // This update will trigger an errror
1380
+ // This update will trigger an error
1381
ReactNoop.render(<Counter count={1} />, () =>
1382
Scheduler.unstable_yieldValue('Sync effect'),
1383
);
@@ -1427,7 +1427,7 @@ describe('ReactHooksWithNoopRenderer', () => {
1427
});
1428
1429
act(() => {
1430
- // This update will trigger an errror
1430
+ // This update will trigger an error
1431
ReactNoop.render(<Counter count={1} />, () =>
1432
Scheduler.unstable_yieldValue('Sync effect'),
1433
);
packages/react-reconciler/src/__tests__/ReactIncremental-test.internal.js
+1
-1
@@ -304,7 +304,7 @@ describe('ReactIncremental', () => {
304
305
ops = [];
306
307
- // Render the high priority work (everying except the hidden trees).
307
+ // Render the high priority work (everything except the hidden trees).
308
ReactNoop.flushSync(() => {
309
ReactNoop.render(<Foo text="foo" />);
310
});
packages/react-reconciler/src/__tests__/ReactSuspenseFuzz-test.internal.js
+1
-1
@@ -52,7 +52,7 @@ describe('ReactSuspenseFuzz', () => {
52
const cleanUps = new Set();
53
updates.forEach(({remountAfter}, i) => {
54
const task = {
55
- label: `Remount childen after ${remountAfter}ms`,
55
+ label: `Remount children after ${remountAfter}ms`,
56
};
57
const timeoutID = setTimeout(() => {
58
pendingTasks.delete(task);
packages/react-refresh/src/ReactFreshBabelPlugin.js
+1
-1
@@ -279,7 +279,7 @@ export default function(babel) {
279
let forceReset = hasForceResetComment(scope.path);
280
let customHooksInScope = [];
281
customHooks.forEach(callee => {
282
- // Check if a correponding binding exists where we emit the signature.
282
+ // Check if a corresponding binding exists where we emit the signature.
283
let bindingName;
284
switch (callee.type) {
285
case 'MemberExpression':
packages/react/src/__tests__/ReactProfiler-test.internal.js
+1
-1
@@ -2628,7 +2628,7 @@ describe('Profiler', () => {
2628
});
2629
2630
it('handles high-pri renderers between suspended and resolved (async) trees', async () => {
2631
- // Set up an initial shell. We need to set this up before the test sceanrio
2631
+ // Set up an initial shell. We need to set this up before the test scenario
2632
// because we want initial render to suspend on navigation to the initial state.
2633
let renderer = ReactTestRenderer.create(
2634
<React.Profiler id="app" onRender={() => {}}>