mardi 31 juillet 2018

How to read a server based file with React

I am able to read a config.json file (using fetch) wich I included in my public directory with the "build" system, however when I test my system (yarn start ->localhost:3000) I get a 404, localhost:3000/config.json directly in my browser serves me this file. Any idea what to do?

Aucun commentaire:

Enregistrer un commentaire