1//example of an axios post request with body and config object with timeout
2//timeout is response (not request) timeout
3axios.post('http://mysite.com/user', { name: 'John' }, { timeout: 2 })
4 .then(response => { console.log(response); })
5 .catch(error => { console.log(error); });