mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
use import
This commit is contained in:
parent
826e126c7e
commit
ed29c1a274
@ -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…
Reference in New Issue
Block a user