I'm trying to build a form with radius being the options generated by a mapped array, but the following error appears:
Uncaught Error: input is a void element tag and must neither have children nor use dangerouslySetInnerHTML.
The code below goes into rendering a component React:
<form>
<p>{this.state.current_statement}</p>
<div>
{this.state.current_alternative.map(item => (
<input key={item.id} type="radio">
<label>{item.content}</label>
</input>
))}
</div>
<div>
<button type="submit">Submit</button>
</div>
</form>