create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

Map() datastructure in React App for IE

Open stbenz88 opened this issue 9 years ago • 2 comments

I would like to use the Map() datastructure in my React App without ejecting. It works in all modern browsers, but not in IE.

Doesn't the underlying babel take care of translating new ES6 features so that even IE can understand it? Or do I have to do something special for achieving that? Thanks for feedback.

stbenz88 avatar Aug 04 '17 14:08 stbenz88

Why don't you use this polyfill? https://github.com/paulmillr/es6-shim/

stelioschar avatar Aug 04 '17 14:08 stelioschar

You can:

npm install core-js --save

Then, in index.js:

import 'core-js/es6/map';

Timer avatar Aug 04 '17 14:08 Timer