A problem with fetch API and map function in React JS, please help me!


I use axios to fetch data from my mongodb, i have a little problem here is the function map i use to access data and render it, it is ‘Cannot read property ‘map’ of undefined’.

Where do you render the Post component? Please post actual code and not screenshots.

Thank you.

1 Like

Oh my god thank you so much, because this is the first time i put my question on this community, now i can solve my problem, thank for that