Skip to content

Instantly share code, notes, and snippets.

@petrosDemetrakopoulos
Created January 17, 2022 08:43
Show Gist options
  • Save petrosDemetrakopoulos/4f78430d512cdff3f395045ca961a11c to your computer and use it in GitHub Desktop.
Save petrosDemetrakopoulos/4f78430d512cdff3f395045ca961a11c to your computer and use it in GitHub Desktop.
Chackbox items function
function checkboxItems() {
return (
<React.Fragment>
{options.map((option) => (
<ListItem
key={option}
text={option}
handleOnChange={() => handleCheckboxChange(option)}
selected={state.selections.includes(option)}
></ListItem>
))}
</React.Fragment>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment