From 33b186a6fafb0702b138611a9a57b9f1b7438f84 Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Tue, 10 Apr 2018 15:57:01 +0800 Subject: [PATCH] Use var instead of let --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 43edb01..59d607f 100644 --- a/index.js +++ b/index.js @@ -61,9 +61,9 @@ export function polyfill(Component) { // If new component APIs are defined, "unsafe" lifecycles won't be called. // Error if any of these lifecycles are present, // Because they would work differently between older and newer (16.3+) versions of React. - let foundWillMountName = null; - let foundWillReceivePropsName = null; - let foundWillUpdateName = null; + var foundWillMountName = null; + var foundWillReceivePropsName = null; + var foundWillUpdateName = null; if (typeof prototype.componentWillMount === 'function') { foundWillMountName = 'componentWillMount'; } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {