Skip to content

Commit 820d5dd

Browse files
authored
Merge pull request #17 from yesmeck/use-var
Use var instead of let
2 parents 0d897c2 + 33b186a commit 820d5dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ export function polyfill(Component) {
6161
// If new component APIs are defined, "unsafe" lifecycles won't be called.
6262
// Error if any of these lifecycles are present,
6363
// Because they would work differently between older and newer (16.3+) versions of React.
64-
let foundWillMountName = null;
65-
let foundWillReceivePropsName = null;
66-
let foundWillUpdateName = null;
64+
var foundWillMountName = null;
65+
var foundWillReceivePropsName = null;
66+
var foundWillUpdateName = null;
6767
if (typeof prototype.componentWillMount === 'function') {
6868
foundWillMountName = 'componentWillMount';
6969
} else if (typeof prototype.UNSAFE_componentWillMount === 'function') {

0 commit comments

Comments
 (0)