入口文件index.js
import React from react;
import ReactDOM from react-dom;
import App from ./App;
import registerServiceWorker from ./registerServiceWorker;//缓存文件
import {BrowserRouter} from react-router-dom;//或者使用HashRouter作跳转也是可以的ReactDOM…
入口文件index.js
import React from ‘react’;
import ReactDOM from ‘react-dom’;
import App from ‘./App’;
import registerServiceWorker from ‘./registerServiceWorker’;//缓存文件
import {BrowserRouter} from ‘react-router-dom’;//或者使用HashRouter…