create-react-app
create-react-app copied to clipboard
Map() datastructure in React App for IE
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.
Why don't you use this polyfill? https://github.com/paulmillr/es6-shim/
You can:
npm install core-js --save
Then, in index.js:
import 'core-js/es6/map';