Skip to content

Instantly share code, notes, and snippets.

@stoneboyindc
Created August 18, 2020 02:44
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 stoneboyindc/751982531d3ca4ecf1a65cd98177bccb to your computer and use it in GitHub Desktop.
Save stoneboyindc/751982531d3ca4ecf1a65cd98177bccb to your computer and use it in GitHub Desktop.
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