Destructuring for the win.

This commit is contained in:
Erwann Mest 2017-04-13 17:27:03 +02:00 committed by GitHub
parent 335eb0c246
commit 73d7e816b1

View File

@ -15,8 +15,7 @@ Using `OptGroup` to group the options.
````jsx
import { Select } from 'antd';
const Option = Select.Option;
const OptGroup = Select.OptGroup;
const { Option, OptGroup } = Select;
function handleChange(value) {
console.log(`selected ${value}`);