completed 2.14
This commit is contained in:
parent
0509e60769
commit
7fcd63cc74
4 changed files with 25 additions and 67 deletions
|
|
@ -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>
|
||||
);
|
||||
})}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue