gives them the same name, which is to decide what radios are in the same group. Only one radio can be selected in a group.
<input type="radio" id={"option-"+props.idx} name={props.title} value={props.name}/>
gives them the same name, which is to decide what radios are in the same group. Only one radio can be selected in a group.
<input type="radio" id={"option-"+props.idx} name={props.title} value={props.name}/>