React router

三种路由实现方式

  • URL 路径

import {BrowserRouter as Router} from 'react-router-dom';
  • hash 路由

import {HashRouter as Router} from 'react-router-dom';
  • 内存路由

import {MemoryRouter} from 'react-router';

最后更新于