text: import React, {Component} from "react";
  import {createBrowserHistory} from "history";
  import Router from "./Router";
  
  class BrowserRouter extends Component {
    constructor(props) {
      super(props);
      this.history = createBrowserHistory();  // 兼容性更好
    }
    render() {
      return <Router children={this.props.children} history={this.history} />;
    }
  }
  export default BrowserRouter;
  