From ed29c1a27437b767be0049f24bdc238ee09fcfa0 Mon Sep 17 00:00:00 2001 From: yiminghe Date: Tue, 21 Jul 2015 19:09:14 +0800 Subject: [PATCH] use import --- docs/getting-started.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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() {