Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
5 views

Fetch API

The document discusses APIs and how to use the Fetch API in React to make requests to APIs. It defines what an API is, provides some examples of APIs, and explains what the Fetch method is and how to make a practical example API request using Fetch.

Uploaded by

samailgeneral
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Fetch API

The document discusses APIs and how to use the Fetch API in React to make requests to APIs. It defines what an API is, provides some examples of APIs, and explains what the Fetch method is and how to make a practical example API request using Fetch.

Uploaded by

samailgeneral
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

PART-84

Fetch API REACT


PRESENTER: MOHAMMAD ADIL
Humble Request REACT

Techno Verse YT

Heavenly Delicious
Objectives REACT

• What is an API ?
• Examples of API.
• Fetch Method.
• Practical Example Of API using Fetch Method.
HTTP GET POST PUT DELET
PROTOCOL E
VERB MOBILE
APPLICATION
S M L
X S
O N DESKTOP
JS APPLICATION
API S

BROWSE
RS

IOTs
MOBILE
DESKTOP APPLICATIO
APPLICATION NS
S OVERAL
L CASES

NEW API DEATH


CASES Related to Corona Virus S

RECOVE
BROWSER
R
S
Some Examples of APIs
REACT
• Weather Snippets
Some Examples of APIs
REACT
• Log-in Using XYZ
Some Examples of APIs
REACT
• Pay with PayPal
What is an API ? REACT

• API is the acronym for “application programming interface” a


software intermediary that allows two applications to talk to each
other.
• APIs are an accessible way to extract and share data within and
across organizations.
• As per Wikipedia's Definition of API: In computer programming,
(API) is a set of subroutine definitions, protocols, and tools for
building software and applications.
What is fetch function? REACT

• The fetch() method in JavaScript is used to request data from a


server.
• The request can be of any type of API that return the data in JSON or
XML.
• The fetch() method requires one parameter, the URL to request, and
returns a promise.
API REACT

• We can also use React AXIOS library for working with APIs.

You might also like