You've got to set the name attribute in order to select only one
Here is the fiddle : https://codesandbox.io/s/mystifying-brown-m7f4k
<label>
{answer.text}
{question.single ? (
<input
type="radio"
name={`radio_${question.id}`}
onChange={onChange(question.id, answer.id)}
/>
) : (
<input
type="checkbox"
onChange={onClick(question.id, answer.id)}
/>
)}
</label>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…