Skip to content

Commit 898d27f

Browse files
committed
fix(index): refactor destructuring to ensure IE11 usage
1 parent eec5499 commit 898d27f

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)