import { Button } from 'antd';
ReactDOM.render(<Button>xxxx</Button>);
↓ ↓ ↓ ↓ ↓ ↓
var _button = require('antd/lib/button');
require('antd/lib/button/style');
ReactDOM.render(<_button>xxxx</_button>);
options
can be object.
{
"libraryName": "antd",
"libraryDirectory": "lib",
"style": true,
}
["import", { "libraryName": "antd", "style": true }]
import js and css modularly (LESS/Sass source files)