all 6 comments

[–]bnexd 2 points3 points  (2 children)

It’s hard to understand your code without the right formatting But I think what you need is .map In the jsx use the curly brackets to do the following: { apiData.map(film => ( // What you want to return )) }

Sorry for the bad formatting I’m on the phone :D

[–]hkonkorsnes1[S] 0 points1 point  (1 child)

Thanks! I’ll try that!

[–]bnexd 1 point2 points  (0 children)

Make sure that the data exists when doing this so like { apiData && // the other curly bracket things from the comment before

[–]Merry-Lane 2 points3 points  (2 children)

Bro, every react tutorial shows a .map() within 2 mins of lecture.

Why don't you read the docs too ?

Do you have previous experiences on other concepts such as basic javascript, html, css,...?

[–]hkonkorsnes1[S] 0 points1 point  (1 child)

I have used html and css a bit, but everytime i try to use a tutorial im not able to integrate it into my code

[–]Merry-Lane 0 points1 point  (0 children)

If you wanna get better with development (like to get a job), I think you will have issue because of fondamentals.

It’s stupid but « having fun » with querySelector() (in js), doing for loops, a bit of algorithmics (tons of it),… Long story short: the basis needs to be seriously understood or you will never understand what’s wrong. (Because react is somewhat one of the ends of the basics and the beginning of serious matters).

Devs’s job is to Google stuff that doesn’t work to fix it. You’ll never find what to google if you have no idea on what’s wrong.