-
-
Save amandeepmittal/0901b71d7cfcad20ba8d539eb509ecdc 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
// App.js | |
render() { | |
return ( | |
<div className='App'> | |
<div className='App-header'> | |
<h1> | |
<span role='img' aria-label='write'> | |
📝 | |
</span> | |
React + Amplify NoteApp | |
</h1> | |
<form className='form-note'> | |
<input type='text' className='form-input' placeholder='Add your note' /> | |
<button type='submit' className='form-button'> | |
Add | |
</button> | |
</form> | |
<div> | |
{this.state.notes.map(item => ( | |
<div key={item.id} className='notes-list'> | |
<li>{item.note}</li> | |
<button className='notes-list-button'> | |
<span role='img' aria-label='delete-button'> | |
❌ | |
</span> | |
</button> | |
</div> | |
))} | |
</div> | |
</div> | |
</div> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment