I’m working on the Jammming project: https://www.codecademy.com/paths/web-development/tracks/front-end-applications-with-react/modules/jammming/projects/jammming-prj;
and stuck on exercise 34 where we need to map through this.props.tracks.
I get the error
which tells me that this.props.track is undefined. edit I forgot to include TrackList.js, which is now shown below:
I backtracked to SearchResults.js where TrackList.js is receiving the props and that looks fine. I’ve included SearchResults.js below:
I backtracked from SearchResults.js to App.js (where SearchResults.js is getting its props from) and everything looked fine there. I’ve included a snippet of App.js below:
I’ve included the src folder here: https://github.com/lamprotes/jammming
I’ve looked at each Codeacademy thread that includes TypeError: Cannot read property ‘map’ of undefined and haven’t been able to trace out the problem yet. I’ve checked spelling and punctuation through and through, and just can’t see what’s causing the error, but this.props.tracks must be undefined. Any guidance would be greatly appreciated.