The problem of react UI component list loop + component click event unable to get parameters

as shown in the picture, I wrote a stupid component that got a click event from another component and assigned it to the list, but couldn"t get the parameters for each item. Why?
clipboard.png

Jul.18,2022

Remove the parameter index of the outer event in

onClick. This index is the parameter of the onClick event, and the index of your outer loop is not a

.
(item, index) => (<List.Item
    onClick={() => {this.props.handleDelete(index)}}
>
    {item}
    </List.Item>
)
Menu