Created
August 18, 2020 02:44
-
-
Save stoneboyindc/751982531d3ca4ecf1a65cd98177bccb 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
import React from 'react'; | |
import Note from '../note/note'; | |
export default function NoteList(props) { | |
const { | |
id, | |
name, | |
} = props; | |
return ( | |
<section className='note-list'> | |
<ul> | |
{ | |
props.notes.map(note => ( | |
<li className='list-notes'> | |
<Note | |
key={note.id} | |
name={note.name} | |
/> | |
</li>)) | |
} | |
</ul> | |
</section> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment