Created
April 12, 2019 05:40
-
-
Save bhupendra-nitt/10776644834fdeebb3f97a1704167a66 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return ( | |
<div> | |
<div>Name: {name}</div> | |
<div>Age: {age}</div> | |
<input value={name} onChange={(e) => setName(e.target.value)}/> | |
<input value={age} onChange={(e) => setAge(e.target.value)}/> | |
<button onClick={handleSubmit}>Submit</button> | |
<div style={{color: 'red' }}> | |
{error.message} | |
</div> | |
</div> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment