So I've built the example grid from react-virtualized, and now looking to grab data from an API and have a grid rendered.
What's the preferred method for grabbing API data in react? Axios? Fetch?
So I've built the example grid from react-virtualized, and now looking to grab data from an API and have a grid rendered.
What's the preferred method for grabbing API data in react? Axios? Fetch?
The most stable and that requires the least boilerplate code is Axios. Take a look on this nice article.
https://medium.com/@thejasonfile/fetch-vs-axios-js-for-making-http-requests-2b261cdd3af5
I hope it helps you :)