This commit is contained in:
Heaven
2018-11-09 10:17:49 -08:00
committed by Sophie Alpert
parent 5618da49d8
commit 1034e26fe5
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -860,7 +860,7 @@ class App extends React.Component {
});
break;
default:
throw new Error('Switch statement should be exhuastive');
throw new Error('Switch statement should be exhaustive');
}
// Sort
@@ -887,7 +887,7 @@ class App extends React.Component {
});
}
default:
throw new Error('Switch statement should be exhuastive');
throw new Error('Switch statement should be exhaustive');
}
}
+1 -1
View File
@@ -56,7 +56,7 @@ function escapeHtml(string) {
let escape;
let html = '';
let index = 0;
let index;
let lastIndex = 0;
for (index = match.index; index < str.length; index++) {
+1 -1
View File
@@ -811,7 +811,7 @@ function mountLazyComponent(
break;
}
default: {
// This message intentionally doesn't metion ForwardRef or MemoComponent
// This message intentionally doesn't mention ForwardRef or MemoComponent
// because the fact that it's a separate type of work is an
// implementation detail.
invariant(