2.6 completed
This commit is contained in:
parent
bf5fc1431d
commit
6d81165900
4 changed files with 2625 additions and 5 deletions
16
parts/2/phoneBook/src/components/PersonList.jsx
Normal file
16
parts/2/phoneBook/src/components/PersonList.jsx
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
const PersonList = ({ persons }) => {
|
||||
console.log("the list");
|
||||
console.log(persons);
|
||||
|
||||
return (
|
||||
<>
|
||||
<ul>
|
||||
{persons.map((person) => {
|
||||
return <li id={person.name}>{person.name}</li>;
|
||||
})}
|
||||
</ul>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default PersonList;
|
||||
Loading…
Add table
Add a link
Reference in a new issue