提交 ed29c1a2 编写于 作者: Y yiminghe

use import

上级 826e126c
......@@ -68,9 +68,7 @@ $ npm install
编辑 `index.js`,使用 Ant Design 的组件:
```jsx
var antd = require('antd');
var Datepicker = antd.Datepicker;
var message = antd.message;
import {Datepicker, message} from 'antd';
var App = React.createClass({
getInitialState() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册