From 73d7e816b1ac4f41cabaa51f7803ea539b6e215b Mon Sep 17 00:00:00 2001 From: Erwann Mest Date: Thu, 13 Apr 2017 17:27:03 +0200 Subject: [PATCH] Destructuring for the win. --- components/select/demo/optgroup.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/select/demo/optgroup.md b/components/select/demo/optgroup.md index b0ed5e3505..d25badabc7 100644 --- a/components/select/demo/optgroup.md +++ b/components/select/demo/optgroup.md @@ -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}`);