this.state = {
clientData: {
vatExisting: false,
vatAmount: "",
active: null
}
};
activeCheckboxChange = () => {
this.setState(prevState => ({
clientData: {active: !prevState.clientData.active }
}));
};
this.setState(({ clientData }) => ({
clientData: {
...clientData,
active: !clientData.active,
},
}));