fix(multiselectcheckbox): remove export & imports

This commit is contained in:
Rishi Kumar Chawda
2019-02-26 14:46:49 +05:30
committed by GitHub
parent d424daf6cb
commit f5ea9d6c66

View File

@ -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. An `onChange` prop can be passed to the `MultiCheckbox` component to get the updated list on every change event within the list.
```jsx ```jsx
import React from 'react';
const style = { const style = {
listContainer: { listContainer: {
listStyle: 'none', listStyle: 'none',
@ -20,7 +18,7 @@ const style = {
} }
}; };
export default function MultiselectCheckbox ({ options, onChange }) { function MultiselectCheckbox ({ options, onChange }) {
const [data, setData] = React.useState(options); const [data, setData] = React.useState(options);
function toggle (item) { function toggle (item) {