fix breadcrumb warning

pull/34/head
yiminghe 10 years ago
parent 436ae486a1
commit bb5a6d9c29

@ -22,12 +22,6 @@ var Apps = React.createClass({
}
});
var App = React.createClass({
render() {
return <div></div>;
}
});
var App = React.createClass({
render() {
return (<div>

@ -17,7 +17,7 @@ let BreadcrumbItem = React.createClass({
let Breadcrumb = React.createClass({
contextTypes: {
router: React.PropTypes.func.isRequired
router: React.PropTypes.func
},
render() {
var crumbs, routes, params;
@ -35,7 +35,7 @@ let Breadcrumb = React.createClass({
} else {
link = <Link to={route.path} params={params}>{name}</Link>;
}
return <BreadcrumbItem>{link}</BreadcrumbItem>;
return <BreadcrumbItem key={name}>{link}</BreadcrumbItem>;
});
} else {
crumbs = this.props.children;

Loading…
Cancel
Save