Doing HTTP GET Requests using React Hooks, Fetch API and Typescript Generics

preview_player
Показать описание
#webdevelopment #codingtutorials #softwareengineering

Hello!

In this video, I want to share a simple and fast tip for make HTTP Requests in React, using React Hooks, Fetch API and Typescript Generics, for building custom hooks.

We build the useFetch hook. useFetch uses Fetch API for do HTTP Requests, and when component is rendered the request is made. And of course, we can reutilize this hook in every place we want

Рекомендации по теме