Created
January 17, 2022 08:43
-
-
Save petrosDemetrakopoulos/4f78430d512cdff3f395045ca961a11c to your computer and use it in GitHub Desktop.
Chackbox items function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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