diff --git a/docs/getting-started.md b/docs/getting-started.md index 5afef6be46..313973455c 100644 --- a/docs/getting-started.md +++ b/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() {