cannot read property 'props' of undefined react redux functional component

JavaScript
const Index = (props) => { ...
// or
function Index(props) {...

autoPlay={props.deviceType ...
Source

Also in JavaScript: