mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
Minor typos fixed (#12005)
* commiting -> committing * doens't -> doesn't * interuption -> interruption * inital -> initial * statment -> statement
This commit is contained in:
parent
b422fec459
commit
5b975411a1
|
|
@ -123,7 +123,7 @@ class SelectFixture extends React.Component {
|
|||
<li>Click the "Reset" button</li>
|
||||
</TestCase.Steps>
|
||||
<TestCase.ExpectedResult>
|
||||
The select should be reset to the inital value, "bar"
|
||||
The select should be reset to the initial value, "bar"
|
||||
</TestCase.ExpectedResult>
|
||||
|
||||
<div className="test-fixture">
|
||||
|
|
|
|||
|
|
@ -302,7 +302,7 @@ describe('ReactDOMRoot', () => {
|
|||
expect(container.textContent).toEqual('2');
|
||||
});
|
||||
|
||||
it('commits a later batch without commiting an earlier batch', () => {
|
||||
it('commits a later batch without committing an earlier batch', () => {
|
||||
const root = ReactDOM.createRoot(container);
|
||||
const batch1 = root.createBatch();
|
||||
batch1.render(1);
|
||||
|
|
|
|||
|
|
@ -704,7 +704,7 @@ describe('ReactIncremental', () => {
|
|||
|
||||
ops = [];
|
||||
|
||||
// Since we did nothing to the middle subtree during the interuption,
|
||||
// Since we did nothing to the middle subtree during the interruption,
|
||||
// we should be able to reuse the reconciliation work that we already did
|
||||
// without restarting.
|
||||
ReactNoop.flush();
|
||||
|
|
@ -866,7 +866,7 @@ describe('ReactIncremental', () => {
|
|||
|
||||
ops = [];
|
||||
|
||||
// Since we did nothing to the middle subtree during the interuption,
|
||||
// Since we did nothing to the middle subtree during the interruption,
|
||||
// we should be able to reuse the reconciliation work that we already did
|
||||
// without restarting.
|
||||
ReactNoop.flush();
|
||||
|
|
|
|||
|
|
@ -348,7 +348,7 @@ describe('ReactIncrementalSideEffects', () => {
|
|||
ReactNoop.render(<Foo text="foo" step={1} />);
|
||||
ReactNoop.flush();
|
||||
|
||||
// Since we did nothing to the middle subtree during the interuption,
|
||||
// Since we did nothing to the middle subtree during the interruption,
|
||||
// we should be able to reuse the reconciliation work that we already did
|
||||
// without restarting. The side-effects should still be replayed.
|
||||
|
||||
|
|
@ -413,7 +413,7 @@ describe('ReactIncrementalSideEffects', () => {
|
|||
ReactNoop.render(<Foo text="foo" step={1} />);
|
||||
ReactNoop.flush(30);
|
||||
|
||||
// Since we did nothing to the middle subtree during the interuption,
|
||||
// Since we did nothing to the middle subtree during the interruption,
|
||||
// we should be able to reuse the reconciliation work that we already did
|
||||
// without restarting. The side-effects should still be replayed.
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ module.exports = ({types: t, template}) => {
|
|||
ITERATOR: iterator,
|
||||
MAX_ITERATIONS: t.numericLiteral(MAX_ITERATIONS),
|
||||
});
|
||||
// No block statment e.g. `while (1) 1;`
|
||||
// No block statement e.g. `while (1) 1;`
|
||||
if (!path.get('body').isBlockStatement()) {
|
||||
const statement = path.get('body').node;
|
||||
path.get('body').replaceWith(t.blockStatement([guard, statement]));
|
||||
|
|
|
|||
|
|
@ -24,9 +24,9 @@
|
|||
<script src="top-stories.js"></script>
|
||||
<script src="benchmark.js"></script>
|
||||
<script>
|
||||
performance.mark('Inital Render');
|
||||
performance.mark('Initial Render');
|
||||
render();
|
||||
performance.measure('Inital Render', 'Inital Render');
|
||||
performance.measure('Initial Render', 'Initial Render');
|
||||
requestAnimationFrame(() => {
|
||||
performance.mark('Update Render');
|
||||
render();
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@
|
|||
</script>
|
||||
<script src="benchmark.js"></script>
|
||||
<script>
|
||||
performance.mark('Inital Render');
|
||||
performance.mark('Initial Render');
|
||||
render();
|
||||
performance.measure('Inital Render', 'Inital Render');
|
||||
performance.measure('Initial Render', 'Initial Render');
|
||||
requestAnimationFrame(() => {
|
||||
performance.mark('Update Render');
|
||||
render();
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@
|
|||
</script>
|
||||
<script src="benchmark.js"></script>
|
||||
<script>
|
||||
performance.mark('Inital Render');
|
||||
performance.mark('Initial Render');
|
||||
render();
|
||||
performance.measure('Inital Render', 'Inital Render');
|
||||
performance.measure('Initial Render', 'Initial Render');
|
||||
requestAnimationFrame(() => {
|
||||
performance.mark('Update Render');
|
||||
render();
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@
|
|||
</script>
|
||||
<script src="benchmark.js"></script>
|
||||
<script>
|
||||
performance.mark('Inital Render');
|
||||
performance.mark('Initial Render');
|
||||
render();
|
||||
performance.measure('Inital Render', 'Inital Render');
|
||||
performance.measure('Initial Render', 'Initial Render');
|
||||
requestAnimationFrame(() => {
|
||||
performance.mark('Update Render');
|
||||
render();
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ const push = async ({cwd, dry, packages, version}) => {
|
|||
}
|
||||
|
||||
// If we've just published a stable release,
|
||||
// Update the @next tag to also point to it (so @next doens't lag behind).
|
||||
// Update the @next tag to also point to it (so @next doesn't lag behind).
|
||||
if (!isPrerelease) {
|
||||
await execUnlessDry(
|
||||
`npm dist-tag add ${project}@${packageVersion} next`,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user