Axios and Fetch: React Crash Course For Beginners Tutorial

Опубликовано: 20 Май 2022
на канале: Legion Script
754
8

In this video we will go over how to make api calls in React. We will go over two different ways to do this, using Axios and using Fetch. As an example, we will use JSONPlaceholder to simulate an api request and show how to make a get and a post request.

Starting Code:
https://github.com/legionscript/react...

Ending Code:
https://github.com/legionscript/react...

Axios Documentation:
https://www.npmjs.com/package/axios

Fetch Documentation:
https://developer.mozilla.org/en-US/d...

JSONPlaceholder:
https://jsonplaceholder.typicode.com/

Free Structured Courses on Legionscript.com:
https://www.legionscript.com/