DEV Community

Discussion on: Senior front end dev here, ask me anything!

Collapse
 
kendalmintcode profile image
Rob Kendal {{☕}}

I think the Axios docs themselves are pretty good for this. But I have an article on using Redux with a data handler mechanism which is pretty useful and you can always strip out the Redux part. Here's the article (there's also a part one).

Advice-wise, I'd really look to implement whatever you like to handle API's. I like Axios as it covers some backward compatibility with frustrating browsers like IE11. However, I'd definitely look to abstract any API handling into a separate utility class or set of them. It'll clean up your component code nicely :D