I have a function SaveData which is basically an API request.
export function SaveData(data, initialState) {
try {
axios.post("http://192.168.1.17:85/DevAPINew/API/" + initialState.SaveUrl, data[0])
.then(response => console.log(response))
}
catch (error) {
console.log(error);
}
}
I am calling this function in another page. How can i read the response from another page
SaveData(data, initialState)