useCheckboxes()
function useCheckboxes(defaultState): object;
Hook to maintain checkbox state
Parameters
| Parameter | Type |
|---|---|
defaultState | Checkbox[] |
Returns
object
checkboxes
checkboxes: Checkbox[];
setCheckbox()
setCheckbox: (index, checked) => void;
Parameters
| Parameter | Type |
|---|---|
index | any |
checked | any |
Returns
void