We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0d897c2 + 33b186a commit 820d5ddCopy full SHA for 820d5dd
index.js
@@ -61,9 +61,9 @@ export function polyfill(Component) {
61
// If new component APIs are defined, "unsafe" lifecycles won't be called.
62
// Error if any of these lifecycles are present,
63
// 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;
+ var foundWillMountName = null;
+ var foundWillReceivePropsName = null;
+ var foundWillUpdateName = null;
67
if (typeof prototype.componentWillMount === 'function') {
68
foundWillMountName = 'componentWillMount';
69
} else if (typeof prototype.UNSAFE_componentWillMount === 'function') {
0 commit comments