---
order: 2
iframe: true
title: 路由
---
和 `react-router@2.x` 进行结合使用。
````jsx
const ReactRouter = require('react-router');
let { Router, Route, Link, hashHistory } = ReactRouter;
import { Breadcrumb } from 'antd';
const Apps = React.createClass({
render() {
return (
);
}
});
const Home = React.createClass({
render() {
return (
首页
应用列表
{this.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;
}
````