From f5ea9d6c66500a141bbf70f7802dc43fbcbdaba8 Mon Sep 17 00:00:00 2001 From: Rishi Kumar Chawda Date: Tue, 26 Feb 2019 14:46:49 +0530 Subject: [PATCH] fix(multiselectcheckbox): remove export & imports --- snippets/MultiselectCheckbox.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/snippets/MultiselectCheckbox.md b/snippets/MultiselectCheckbox.md index 5fe3cb13c..eabda25e7 100644 --- a/snippets/MultiselectCheckbox.md +++ b/snippets/MultiselectCheckbox.md @@ -7,8 +7,6 @@ Initially, all the items in the `options` array only have label ( and / or other An `onChange` prop can be passed to the `MultiCheckbox` component to get the updated list on every change event within the list. ```jsx -import React from 'react'; - const style = { listContainer: { listStyle: 'none', @@ -20,7 +18,7 @@ const style = { } }; -export default function MultiselectCheckbox ({ options, onChange }) { +function MultiselectCheckbox ({ options, onChange }) { const [data, setData] = React.useState(options); function toggle (item) {