-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The following:
<FormGroup>
<Label>Email</Label>
<Input name="email" onChange={this._handleChange} />
{do {
if (this.state.showEmailEmpty) {
<span>
<br />This field cannot be empty
</span>;
}
}}
</FormGroup>Moving the <span> tag outside of the do block solves the issue...:
<FormGroup>
<Label>Email</Label>
<Input name="email" onChange={this._handleChange} />
<span>
{do {
if (this.state.showEmailEmpty) {
"This field cannot be empty"
}
}}
</span>
</FormGroup>... as does removing the enclosing FormGroup
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
