I want to return the response of axios but always the response that returned is undefined:
wallet.registerUser=function(data){ axios.post(\'http://localhost:8080
The main point here is to access the promise value. For that, we just need to log the response in the below format.
static getSearchAPI = () => { return axios.post(URl); } getRestaurents() { Helpers.getSearchAPI().then(function (response) { console.log(response.data); })}