I have following code.
axios.post('/user', {
limit: '1000',
})
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
It took around 1-3 seconds to get data. In the meantime, how can I display something like loading..... or fetching.....