I have a sample_data.json(this json file is located in my local HDD) file which I can read from my React JS project.
Now the problem is, if I change the data of the sample_data.json file, how can I fetch the updated data in my project?
I already use setInterval method to read the json file after with a 5secs interval. But it fails to read the modified json file.
this.timer = setInterval(()=> this.beginSampleData(), 5000);