mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
fix breadcrumb demo warning
This commit is contained in:
parent
c1ac6917ee
commit
e533846489
@ -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 = () => (
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user