Skip to content

Commit ce0b46e

Browse files
authored
Merge pull request #10 from americanexpress/refactor/ES5
refactor(index): refactor for ES5
2 parents 8bc6a12 + 90a0542 commit ce0b46e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
* or implied. See the License for the specific language governing permissions and limitations
1212
* under the License.
1313
*/
14-
14+
/* eslint-disable no-var,vars-on-top */
1515
// eslint-disable-next-line prefer-destructuring
16-
const createContext = require('react').createContext;
16+
var createContext = require('react').createContext;
1717

18-
const contexts = {};
18+
var contexts = {};
1919

2020
module.exports = function createSharedReactContext(defaultValue, key) {
2121
if (!key) {
@@ -26,7 +26,7 @@ module.exports = function createSharedReactContext(defaultValue, key) {
2626
if (contexts[key]) {
2727
return contexts[key];
2828
}
29-
const context = createContext(defaultValue);
29+
var context = createContext(defaultValue);
3030
contexts[key] = context;
3131
return context;
3232
};

0 commit comments

Comments
 (0)