Skip to main content

React Fetching

In this course for the data, we have used is the API endpoint from https://reqres.in/api/users

Fetch method

The fetch() is a method in JavaScript is used to request to the server and load the information in the webpages. The request can be of any APIs that return the data of the format JSON or XML.

Write following code in App.jsx.


carbon (5).png


Output: 

output.JPG