Home > Net >  React, Strapi & GraphQL: React doens't load the contecnt, screen totaly white and no errors in
React, Strapi & GraphQL: React doens't load the contecnt, screen totaly white and no errors in

Time:10-06

I am trying to implement Strapi on my react website. So i did some code and i didn't get an error but my screen is still white.

Index.js:image.js screenshot

Portfolio.jsx Proftolio.jsx file screenshot

The only thing what i can found is in elemenemt inspect:element inspect screenshot

Does anyone know what is wrong in my code? I've got the content out of the playground.

CodePudding user response:

Remove the "attributes" in your "map" and where you are using: {portfolio.title} should be {portfolio.attributes.title} thats what fixed mine untill I just broke it again trying for images...

  • Related