diff --git a/components/breadcrumb/demo/router.md b/components/breadcrumb/demo/router.md
index 85a3cf8c06..0230435677 100644
--- a/components/breadcrumb/demo/router.md
+++ b/components/breadcrumb/demo/router.md
@@ -22,12 +22,6 @@ var Apps = React.createClass({
}
});
-var App = React.createClass({
- render() {
- return
;
- }
-});
-
var App = React.createClass({
render() {
return (
diff --git a/components/breadcrumb/index.jsx b/components/breadcrumb/index.jsx
index 1ae4ef9dcf..f7cf1fb8b8 100644
--- a/components/breadcrumb/index.jsx
+++ b/components/breadcrumb/index.jsx
@@ -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 = {name};
}
- return {link};
+ return {link};
});
} else {
crumbs = this.props.children;
diff --git a/package.json b/package.json
index a1209db34f..02bc0d62ad 100644
--- a/package.json
+++ b/package.json
@@ -44,7 +44,6 @@
"lodash": "^3.10.0",
"nico-jsx": "~0.5.8",
"precommit-hook": "^1.0.7",
- "react-router": "~0.13.3",
"webpack": "^1.10.1",
"webpack-dev-middleware": "^1.2.0"
},
diff --git a/scripts/demo.js b/scripts/demo.js
index 43d7be9c76..d2bbc2ae20 100644
--- a/scripts/demo.js
+++ b/scripts/demo.js
@@ -1,3 +1,2 @@
-window['react-router'] = require('react-router');
-
window['css-animation'] = require('css-animation');
+window['react-router'] = window.ReactRouter;
diff --git a/site/templates/layout.html b/site/templates/layout.html
index 3c9c786863..6d22f97e5c 100644
--- a/site/templates/layout.html
+++ b/site/templates/layout.html
@@ -1,64 +1,84 @@
-
-
-
-
-
-
{% block title %}{{ config.site.name }} - {{ config.site.description }}{% endblock %}
-
-
-
-
- {% block styles %}{% endblock %}
-
-
-
-
-
- {% block scripts %}{% endblock %}
+
+
+
+
+
+ {% block title %}{{ config.site.name }} - {{ config.site.description }}{% endblock %}
+
+
+
+
+ {% block styles %}{% endblock %}
+
+
+
+
+
+
+ {% block scripts %}{% endblock %}
-