score:1

your input type needs to be checkbox, not radio. you also need to reference state with your checked attribute.

 <input 
     type="checkbox"
     id={checkboxdata[i].id}
     checked={this.state.checkboxes[i]}
     onchange={this.settag}
 />

this will set state with true or false depending on the state of the checkbox


Related Query

More Query from same tag