In the react dnd plug-in, the props.index of dragging the spec in the target component has always been undefined,. How can I get this value?

problem description

the props.index of dragging the spec in the target component in the

react dnd plug-in has always been undefined,. How can I get this value?

the environmental background of the problems and what methods you have tried

use React dnd to implement the drag-and-drop function of the React project. In the drag-and-drop target component (Target), the props.index in the method of getting the specObj object in the hover (props, monitor, component) component is always undefined.
Baidu document describes the current props of props: components
individuals also use to pass index to subcomponents in the drag and drop target component (Target.js) template

related codes

...
const cardTarget = {
    hover(props, monitor) {
        console.log("props-->",props.index); //undefined
        //:
    }
};
class Target extends Component {
    render() { 
        ....
        let items = list.map((item, index) => {
            return <Source index={index} id={item.id} />
        })
        return connectDropTarget(<div>{items}</div>)
    }
}
...

what result do you expect? What is the error message actually seen?

how can I get the value of props.index in the specObj object method in the hover component?

console print message:

props index--> undefined
Mar.29,2021

you need to define it in beginDrag .

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e54a19-5a316.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e54a19-5a316.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?