hi I use bootstrap and i have a doubt. when I place checkboxes the state is saved. I can refresh that the selection is not changed. now i started using ant design. I've got a code working. but I can't get the checkbox status safe. i've moved up with localstorage and trying in classes. thanks for the info
<div>
<Checkbox.Group valuePropName="checkbox">
<Space direction="vertical">
{props.resposta.map((resposta, i) => {
return <Checkbox onChange={onChangeCheckbox} key={i} id={resposta.id} value={resposta.code}> {resposta.answer} </Checkbox>
})}
</Space>
</Checkbox.Group>
</div>
class that put checked "ant-checkbox-checked"
Aucun commentaire:
Enregistrer un commentaire