fix breadcrumb demo warning

This commit is contained in:
afc163 2016-06-12 14:14:55 +08:00
parent c1ac6917ee
commit e533846489
2 changed files with 4 additions and 6 deletions

View File

@ -7,8 +7,7 @@ title: 路由
`react-router@2.x` 进行结合使用。
````jsx
const ReactRouter = require('react-router');
const { Router, Route, Link, hashHistory } = ReactRouter;
import { Router, Route, Link, hashHistory } from 'react-router';
import { Breadcrumb } from 'antd';
const Apps = () => (

View File

@ -21,12 +21,11 @@
}
return window.parent[module];
}
var React = require('react');
var ReactDOM = require('react-dom');
var mountNode = document.getElementById('{{ id }}');
</script>
<script src="https://npmcdn.com/react-router/umd/ReactRouter.min.js"></script>
<script src="https://npmcdn.com/react/dist/react.js"></script>
<script src="https://npmcdn.com/react-dom/dist/react-dom.js"></script>
<script src="https://npmcdn.com/react-router/umd/ReactRouter.js"></script>
<script>
{{ script }}
</script>