I can't get it to respond onDoubleClick. neither with console.log. I do not understand why, since the code looks good. I hope your help thank you very much, bye.
}
deleteUser = async(id) => {
await axios.delete('http://localhost:4000/users/' + id)
this.getUsers();
}
this.state.users.map(user => (
<li
className="list-group-item list-group-item-action"
key={user._id}
onDoubleClick={() => this.deleteUser(user._id)}
>
{user.username}
</li>)
)