I'm pretty sure I just don't have proper syntax but an't seem to figure out the correct syntax. Here's my code (it is inside of a return() and that return is inside of a render(){} along with html.
<div className="questions">
Now let's add some questions... <br />
{// This is where we loop through our questions to
// add them to the DOM.
this.state.questions.map(question => {
return (
<div>
{question}
{
for (var i = 0; i < 4; i++) {
answers.push(
<input
type="text"
onChange={this.handleChange}
name={uuid()}
/>
);
}
}
</div>
);
})
</div>
I am very new to this so any help would be super helpful, thanks!