React实现新闻网站--使用动态路由获取不同列表内容
【推荐阅读】微服务还能火多久?>>> 效果演示 以下是核心代码 src/index.js import React,{Component} from 'react' ; import ReactDom from 'react-dom' ; import { Layout } from 'antd' ; import 'antd/dist/antd.css' ; import './style.css' ; import AppHeader from './components/AppHeader/' ; import {BrowserRouter,Route,Switch} from 'react-router-dom' ; import Detail from './containers/Detail/' ; import PageList from './containers/List/' ; const { Header, Footer, Content } = Layout; class App extends Component{ render(){ return ( <BrowserRouter> <Layout style={{minWidth:1200,height:'100%'}}> <Header className="header"><AppHeader/><