Skip to content

Instantly share code, notes, and snippets.

@amandeepmittal
Created April 19, 2019 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amandeepmittal/97c104940cc250b9b05114410e9e2955 to your computer and use it in GitHub Desktop.
Save amandeepmittal/97c104940cc250b9b05114410e9e2955 to your computer and use it in GitHub Desktop.
<div>
{this.state.notes.map(item => (
<div key={item.id} className='notes-list'>
<li>{item.note}</li>
<button className='notes-list-button' onClick={() => this.deleteNote(item.id)}>
<span role='img' aria-label='delete-button'>
</span>
</button>
</div>
))}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment