Sunday, July 16, 2017

Fetch api

Welcome



What is fetch-api?
Matt is a contributor to WebFundamentals. So long XMLHttpRequest. fetch() allows you to make network requests similar to XMLHttpRequest (XHR). The main difference is that the Fetch API uses Promises, which enables a simpler and cleanerAPI, avoiding callback hell and having to remember the complex API of XMLHttpRequest ...


How do we use the Fetch API?   In a very simple manner all you really do is call fetch with the URL you want, by default the Fetch API uses the GET method, so a very simple.

No comments:

Post a Comment