I am facing the problem, when i enter the table row all the edit button hover all together which i dont want. I just want to hover only that particular edit button of that row table.
const [showActionId, setShowActionId] = useState('');
//Returning the jsx in TableBody
<TableRow key={row.email} hover className={classes.tableRow} component={Link} to={`${ROUTE_USERS}/${row._id}`}
onMouseEnter={() => {
setShowActionId(row.id);
}}
onMouseLeave={() => setShowActionId('')}
>
// Button here which have to hover when mouseenter on table row
<TableCellButton align='center'>
<Link to={`${ROUTE_USERS}/${row._id}`}>
<Button className={classes.button} size='small' color='default'>
{row.id === showActionId ? 'Hover' : ''}
<IconEdit />
</Button>
</Link>
</TableCellButton>