Using Fetch in React with Function Components - JavaScript Tutorial

preview_player
Показать описание

This tutorial shows you how to make HTTP requests in React with using the native Fetch API. The tutorial uses modern function components with the useState() and useEffect() hooks.
#react #reactjs #reactjstutorial #javascript #javascript_tutorial #fetch #fetchapi #httprequest #tutorial #webdev #webdevelopment #frontend #frontenddeveloper #programming

Рекомендации по теме
Комментарии
Автор

Finally, something that worked for me. Thx!!

LeetCodeSimplified
Автор

Wow Amazing video well explained and simple thank you

somtecservices
Автор

Excellent, I'm very subscribed to your channel

shu-kun
Автор

Great video, simple and well explained, incredibly hard to find a simple api fetch and useEffect without too many bells and whistles

johnodev
Автор

How would this work with an image. I'm having a similar situation but with an image. I need to calculate values based on the image's dimensions but because the image loads async I get your same error where "it cannot read properties of null". The component gets the url as prop and then returns the image plus a box around parts of the image that are calculated based on its dimensions.

dietrevich
join shbcf.ru