react router集中式路由
import { routesArray } from './routerArray'
import {renderRoutes, matchRoutes} from 'react-router-config';
import {HashRouter} from 'react-router-dom';
function App() {
return(
{renderRoutes(routesArray)}
}
export default App;
import FirstLayout from '../page/FirstLayout'
import SecondLayout from '../page/SecondLayout'
import ThirdLayout from '../page/ThirdLayout'
const routesArray = [
{
path : "/",
component : Fi
共有 0 条评论