Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 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