I have two radio buttons, one of them is "checked" (according to server response - 0 or 10), and I need to click one of the buttons to send new data to the server (ether value 0 or 10). I have working code, data is sending to the server correctly, all is working. But the problem is - property "checked" is disappearing from both buttons after clicking one of them...
Can some one help me?
this.state = {          
   status: ""          
}
statusHandler(e) {
  this.setState({ status: e.target.value });
}
<div className="modal-body">
  <div className="form-check form-check-inline">
    <input className="form-check-input"
      type="radio"
      name="inlineRadioOptions"
      id="inlineRadio1"
      value={0}
      checked={this.state.status === 0 ? true : false}
      onChange={(e) => this.statusHandler(e)} />
    <label className="form-check-label" htmlFor="inlineRadio1">Open</label>
  </div>
  <div className="form-check form-check-inline">
    <input className="form-check-input"
      type="radio"
      name="inlineRadioOptions"
      id="inlineRadio2"
      value={10}
      checked={this.state.status === 10 ? true : false}
      onChange={(e) => this.statusHandler(e)} />
    <label className="form-check-label" htmlFor="inlineRadio2">Done</label>
  </div>
</div>
 
    