completed 2.14

This commit is contained in:
Pablo Martin 2025-05-27 16:42:59 +02:00
parent 0509e60769
commit 7fcd63cc74
4 changed files with 25 additions and 67 deletions

View file

@ -1,4 +1,4 @@
const PersonList = ({ persons }) => {
const PersonList = ({ persons, deletionHandlerFactory }) => {
return (
<>
<ul>
@ -6,6 +6,7 @@ const PersonList = ({ persons }) => {
return (
<li key={person.name}>
{person.name} --- {person.number}
<button onClick={deletionHandlerFactory({person})}>delete</button>
</li>
);
})}