Edit package.json
file to include these browserslist configuration
{
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
Install react-app-polyfill
npm install react-app-polyfill
or if using yarn
yarn add react-app-polyfill
Import the polyfill to src/index.js
import "react-app-polyfill/ie11"; // according to supported IE version
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
// rest of file...