# 路由 - order: 2 和 `react-router@0.13.x` 进行结合使用。 --- ````jsx var Router = require('react-router'); var Route = Router.Route; var Link = Router.Link; var RouteHandler = Router.RouteHandler; var Breadcrumb = require('antd/lib/breadcrumb'); var Apps = React.createClass({ render() { return ; } }); var App = React.createClass({ render() { return (
首页 应用列表
点击上面的导航切换页面,面包屑在下面:
); } }); var routes = ( ); Router.run(routes, Router.HashLocation, (Root) => { React.render(, document.getElementById('components-breadcrumb-demo-router')); }); ````