I would like to know how to make functional, let's say this button, I create a table with a repeater that shows me all the categories that the api returns in json, but in each I have the option to eliminate, to eliminate that category, how can I do in react that for example with some onClick or something like that call a function and send the name of that category and then that the function makes a fetch to my API?
{this.state.items.length ?
this.state.items.map(item=>
<tr>
<td>{item.name}</td>
<td><a href="#"><b>Edit</b></a> | <a className="red" href="#">Delete</a></td>
</tr>