📜  HashRouter - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:14.355000             🧑  作者: Mango

代码示例1
// React Router v6:
//  which syncs 'window.location.hash' with the UI
// *** NOTE: strongly recommended to avoid using unless you need to ***
import ReactDOM from 'react-dom';
import { HashRouter } from 'react-router-dom';

ReactDOM.render(
  
    {/* The rest of your app goes here */}
  ,
  root
);