JAVASCRIPT
infinite loop MenuItem MUI fixed onClick event
<MenuItem onClick={() => handleDelete(post._id, auth.token)}>
<ListItemIcon>
<DeleteIcon fontSize='small' />
</ListItemIcon>
<ListItemText>Delete</ListItemText>
</MenuItem>
infinite loop MenuItem MUI fixed onClick event
<MenuItem onClick={() => handleDelete(post._id, auth.token)}>
<ListItemIcon>
<DeleteIcon fontSize='small' />
</ListItemIcon>
<ListItemText>Delete</ListItemText>
</MenuItem>
infinite loop MenuItem MUI fixed onClick event
<MenuItem onClick={() => handleDelete(post._id, auth.token)}>
<ListItemIcon>
<DeleteIcon fontSize='small' />
</ListItemIcon>
<ListItemText>Delete</ListItemText>
</MenuItem>
infinite loop MenuItem MUI fixed onClick event
<MenuItem onClick={() => handleDelete(post._id, auth.token)}>
<ListItemIcon>
<DeleteIcon fontSize='small' />
</ListItemIcon>
<ListItemText>Delete</ListItemText>
</MenuItem>
infinite loop MenuItem MUI fixed onClick event
<MenuItem onClick={() => handleDelete(post._id, auth.token)}>
<ListItemIcon>
<DeleteIcon fontSize='small' />
</ListItemIcon>
<ListItemText>Delete</ListItemText>
</MenuItem>
infinite loop MenuItem MUI fixed onClick event
<MenuItem onClick={() => handleDelete(post._id, auth.token)}>
<ListItemIcon>
<DeleteIcon fontSize='small' />
</ListItemIcon>
<ListItemText>Delete</ListItemText>
</MenuItem>
infinite loop MenuItem MUI fixed onClick event
<MenuItem onClick={() => handleDelete(post._id, auth.token)}>
<ListItemIcon>
<DeleteIcon fontSize='small' />
</ListItemIcon>
<ListItemText>Delete</ListItemText>
</MenuItem>
infinite loop MenuItem MUI fixed onClick event
<MenuItem onClick={() => handleDelete(post._id, auth.token)}>
<ListItemIcon>
<DeleteIcon fontSize='small' />
</ListItemIcon>
<ListItemText>Delete</ListItemText>
</MenuItem>
infinite loop MenuItem MUI fixed onClick event
<MenuItem onClick={() => handleDelete(post._id, auth.token)}>
<ListItemIcon>
<DeleteIcon fontSize='small' />
</ListItemIcon>
<ListItemText>Delete</ListItemText>
</MenuItem>
infinite loop MenuItem MUI fixed onClick event
<MenuItem onClick={() => handleDelete(post._id, auth.token)}>
<ListItemIcon>
<DeleteIcon fontSize='small' />
</ListItemIcon>
<ListItemText>Delete</ListItemText>
</MenuItem>