I'm a newbie to react. I have created react application using npx create-react-app. In actions,axios.get is throwing localhost:3000 file not found error. Below is the code which is in src/actions/index.js
export function lang(language) { let url = "./../resources/strings/strings_" + language + ".json"; return dispatch => { axios.get(url).then(response => { console.log(response.data) }).catch(response => { console.log(response); }); } } This is the project structure [1]: https://i.sstatic.net/CwTJg.png
What am I doing wrong? I couldn't find a proper solution for this. Thanks in advance.