---
order: 2
iframe: true
title: 路由
---
和 `react-router@2.x` 进行结合使用。
````jsx
const ReactRouter = require('react-router');
const { Router, Route, Link, hashHistory } = ReactRouter;
import { Breadcrumb } from 'antd';
const Apps = () => (
);
const Home = (props) => (
首页
应用列表
{props.children || 'Home'}
点击上面的导航切换页面,面包屑在下面:
);
ReactDOM.render(
, mountNode);
````
````css
#components-breadcrumb-demo-router iframe {
height: 180px;
}
.demo-nav {
height: 30px;
line-height: 30px;
margin-bottom: 15px;
background: #f8f8f8;
}
.demo-nav a {
line-height: 30px;
padding: 0 10px;
}
.app-list {
margin-top: 15px;
}
````