completed 2.7

This commit is contained in:
counterweight 2025-05-25 00:10:10 +02:00
parent 6d81165900
commit 9753d15002
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
3 changed files with 11 additions and 6 deletions

View file

@ -1,12 +1,9 @@
const PersonList = ({ persons }) => {
console.log("the list");
console.log(persons);
return (
<>
<ul>
{persons.map((person) => {
return <li id={person.name}>{person.name}</li>;
return <li key={person.name}>{person.name}</li>;
})}
</ul>
</>