✅ Fetching data (JSON text) from backend C# to React, doesn't work!
Hi I need help with fetching data from a backend.
I'm using C# (must language for my degree course).
Now, I was following a YouTube video which used a pseudo-backend website to fetch the JSON from there, and it worked for me. Now when I'm trying to fetch my backend data, I think I don't get errors, but it shows a blank screen.
Why?
The backend JSON exists and works, when I enter the path (port 7278), I see the json text on the screen, which means the HTTP GET function works.
When I enter the frontend path (port 3000) it also shows me.
But when I start my program, it doesn't show any JSON, just a blank screen (first picture).
This is the basic code in React:
cs

1 Reply
Your "cs" looks rather grey...