I am trying to render data in my app - just the create react app using an array of objects. I’m still learning React so I’m trying to figure it out.
This returns ie.map is not a function. Which led me to research mapping, but I’m still confused. It’s the “how to draw a horse” problem I am running into. Any easy to read resources for beginners?
I agree with what lasjorg is saying, but just from reading the error, “ie.map is not a function”, as jsdisco is saying, that means that ie is defined but doesn’t have that method. That means it is not an Array. It could be an object, or any primitive other than undefined or null (since it is not throwing a null pointer exception.)
Not sure where ‘ie’ is coming from… You’re passing a prop called ‘events’ to the ‘some-component’ component. You should be able to access and map over the prop inside the component using this.props.events. Hope this HALPS.