I want to get back data from axios Api into redux thunk just like this one
axios
.post(`/metrics`, data)
.then((res) => {
console.log(res.data);
insted of data array how do I that
I want to get back data from axios Api into redux thunk just like this one
axios
.post(`/metrics`, data)
.then((res) => {
console.log(res.data);
insted of data array how do I that