fix: add ie support (ie >= 9) (#538)

* fix: add ie support (ie > 9)

* fix: add support for IE11

* fix: small fix

* fix: fix
This commit is contained in:
Nekotoxin
2022-03-05 16:32:37 +08:00
committed by GitHub
parent efc07f0919
commit cfbce79e32
3 changed files with 38 additions and 9 deletions

View File

@ -12,18 +12,21 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import 'core-js/es';
import 'react-app-polyfill/ie9';
import 'react-app-polyfill/stable';
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import { BrowserRouter } from 'react-router-dom';
import {BrowserRouter} from 'react-router-dom';
ReactDOM.render(
<BrowserRouter>
<App />
</BrowserRouter>,
document.getElementById('root')
<BrowserRouter>
<App/>
</BrowserRouter>,
document.getElementById('root')
);
// If you want your app to work offline and load faster, you can change