153
rated 0 times
[
158]
[
5]
/ answers: 1 / hits: 16933
/ 5 Years ago, mon, march 4, 2019, 12:00:00
How can I use alert()
to allow the user to enter their name, and save it to state?
Here is what I have attempted so far:
render: function() {
return (
<div>
<input type=text onChange={ this.handleChange } />
<Button>Save</Button>
</div>
);
}
}
More From » reactjs