Skip to content

Commit 86df081

Browse files
authored
Merge pull request #7 from americanexpress/fix/removeDestructuring
fix(index): refactor destructuring to ensure IE11 usage
2 parents eec5499 + 898d27f commit 86df081

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
* under the License.
1313
*/
1414

15-
const { createContext } = require('react');
15+
// eslint-disable-next-line prefer-destructuring
16+
const createContext = require('react').createContext;
1617

1718
const contexts = {};
1819

0 commit comments

Comments
 (0)