Reason : you are returning more than one element htmlfrom a method render. In a component, renderyou can return only one node; if you have, say, a list of returned items, you should wrap them inside div, spanor whatever component.
, render() function, Functions return .
:
return (
<div>
<form onSubmit={this.handleSubmit}>
<label>
Name:
<input type="text" value={this.state.value} onChange={this.handleChange} />
</label>
<input type="submit" value="Submit" />
</form>
<a>{this.state.value}</a>
</div>
);