There is a Table component that I want to display in a container component. In the table I transfer the data and icons (edit, delete). Icons are added to each entry in the table.
ID -------- NAME -------- 1 -------- Vasya -------- edite, delete 2 -------- Alex -------- edite, delete You must somehow associate each icon with a specific ID in the table. When you press the button, the request goes to the server. Such logic should not, in theory, be in the component. But if I create an onClick callback on the icon in the container, it will work for all entries. How to solve this kind of problem?