I am making an add to cart system first time and instead of using php , I am using javascript i.e in client side. will it be safe ?? or if it is not, then what should I do to secure the data in localstorge? Answer Yes, it might be, in your case. As users might be able to manipulate
Tag: local
Fetch local JSON file from public folder ReactJS
I have a problem since two days; I want read a local JSON from my public folder on my React application created with react-app. This is my project structure: public data mato.json (my .JSON file) src components App.js Why I put my file in public folder? If I build my project with file in src folder, my file will be