I'm new to reactjs. I have created below code to make checkbox and to get value of checkbox. But on unchecking the checkbox I'm still getting the value. How to remove value of unchecking the checkbox. Please help.
below is in html
<input onChange={(event)=>this.getCheckboxValue(event)} type='checkbox' value={item.title}/>
Below is function
getCheckboxValue(event) {
console.log(event.target.value)
}