I am new to create-react-app.
I want to know why opening the index.html form a build does not work ??
I know to serve a build serve -s build should be used, but I want to know why a build react app can’t be started without serving.
I will explain further: What I do is...
create-react-app helloworld- Make some code changes and verify that app is running ok.
npm run buildoryarn run build... Now I will have my./builddirectory created withindex.htmlin it.- Now I just open
index.htmlin browser and it won't work.
I want to understand why this does not work? Why I have to serve the build to make it work?