DEV Community

hamzaanis18
hamzaanis18

Posted on

I am stuck with error

I am creating a pagination component in which it shows movies on each page so my pagination function is totally fine and it returns the array of the movies that each page should return but when i call that function in movies and store it in a constant then it would give me undefined why is that can anybody help me?

Top comments (3)

Collapse
 
krishnacyber profile image
krishna-Tiwari

I think you have to give us more details to look up on your code......repost this with source code and error

Collapse
 
shareef profile image
Mohammed Nadeem Shareef

Need more details to look into the problem.

Collapse
 
mikenatsu profile image
MikeNatsu • Edited

I think you should give us a bit more info than that, can you share the code? At least the way you handle such pagination