I have an array in which I want to push the objectIds whenever the checkbox is checked and remove the ids after admin removes the check-mark from it.
<Form.Label>Select Package/s:</Form.Label>
{packages.map((item) => (
<Form.Check
key={item._id}
type="checkbox"
label={item.name}
/>
))}
How can I do that?
