fetch
Last updated
Was this helpful?
Last updated
Was this helpful?
The Fetch API provides an interface for fetching resources (including across the network). It will seem familiar to anyone who has used , but the new API provides a more powerful and flexible feature set.
Not supported on all browsers. You can polyfill using watchwg-fetch
Importing:
If you use webpack, the following will work locally, but fail when deployed in webpack.
response
:
No errors are thrown.
No need for try/catch
response
: