Is it possible to use the fetch API as the HTTP client instead of axios? In places where the fetch API is available (e.g., browser), I'd like to use it instead of including another HTTP client library.
Using cross-fetch allows us to use the same fetch API across all platforms (e.g., browser, node.js and React Native).
Is it possible to use the
fetch
API as the HTTP client instead ofaxios
? In places where thefetch
API is available (e.g., browser), I'd like to use it instead of including another HTTP client library.Using cross-fetch allows us to use the same
fetch
API across all platforms (e.g., browser, node.js and React Native).Thanks!