Javascript – Create function out of the axios POST that can reused later
I have an axios.POST that I want to reuse in my code. the then part of my code will be different but when I add the POST part of the code to a function, I am getting the following error:…