Browse Source

use import

pull/59/head
yiminghe 9 years ago
parent
commit
ed29c1a274
  1. 4
      docs/getting-started.md

4
docs/getting-started.md

@ -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() {

Loading…
Cancel
Save