芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/react-router-dom/modules/HashRouter.js
import React from "react"; import { Router } from "react-router"; import { createHashHistory as createHistory } from "history"; import PropTypes from "prop-types"; import warning from "tiny-warning"; /** * The public API for a
that uses window.location.hash. */ class HashRouter extends React.Component { history = createHistory(this.props); render() { return
; } } if (__DEV__) { HashRouter.propTypes = { basename: PropTypes.string, children: PropTypes.node, getUserConfirmation: PropTypes.func, hashType: PropTypes.oneOf(["hashbang", "noslash", "slash"]) }; HashRouter.prototype.componentDidMount = function() { warning( !this.props.history, "
ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { HashRouter as Router }`." ); }; } export default HashRouter;