I am very new to react and trying to build an app with a react front end and MVC/web API backend. I am running into an issue.
All I've done is created a sample ASP.NET core web app with react, based on the included Visual Studio template. dotnet new react. I've made no other changes to this code.
This app is currently deployed to an Azure app service at: https://examplemvcreact.azurewebsites.net/
Expected: If I visit the url https://examplemvcreact.azurewebsites.net/weatherforecast, I would expect, the weatherforecast controller is called, and its data returned.
Actual result: I get what appears to be a blank index page, with the header rendered correctly.
However, I also notice: that if I do a full refresh, control+f5, on the url https://examplemvcreact.azurewebsites.net/weatherforecast , it DOES in fact hit the controller and give me the data.
Can anyone help me understand how this routing is working? Locally, I don't have this issue.
thank you!