TypeError: Cannot read property 'map' of undefined, Is passing an array as a prop to a functional component not possible?
问题 I am following a MERN stack tutorial in which a parent component Dashboard passes an array of objects from its own props (after mapStateToProps) to another component Education. Trying to iterate through this array in Education component gives me the above mentioned error. Please help, the tutorial seemed to have no errors and I have followed it perfectly so why the issue? <Education education={profile.education}/> (passing the prop in Dashboard.js) education is an array of objects inside an