I want the checkbox value immediately after setting the state. on the below code i want the checkbox value inside the handelchange after setting the state I have added console over there
state = {
status: false,
}
handleChange = (event) => {
this.setState((prevState) => {
return {
...prevState,
status: !prevState.status
}
})
====console.log(this.state.status)====//if it checked and set i should get true
}
<Form.Check
type="checkbox"
label="Consigne temporaire"
value={this.state.status}
onChange={this.handleChange}
/>