React, Intersection Observer Tutorial

preview_player
Показать описание
In this video, you will learn a very basic implementation of Intersection Observer in React. To help you get used to working with the API in React. And from there on, you will have the essential knowledge to move onto more complex uses of the API in React, like infinite scrolling for example.

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

finally i found a video that explain intersection observer without too much complication. I don't think you need to explain what memoize or useEffect clean up is, because only advanced devs would look for intersection observer.

fredteixeira
Автор

How can i use this if I am using different components and want to execute somethings if that components loads up on the screen?

Bikraj
Автор

do I have to put multiple different refs if I am going to use this on more than 1 element?

kjn
Автор

Is your intersecion unobserving? Mine isn't and I'm doing everything just like you. Can you help me please?

jotabarberaIV
Автор

How does the re-execution of the useEffect hook get triggered? The two dependencies, targetRef and options, they don't change, right?

timxu
Автор

can some 1 tell me why am i getting this error:
Failed to execute 'observe' on 'IntersectionObserver': parameter 1 is not of type 'Element'.

bhavinpun
Автор

very helpful video, thanks a lot. Implemented infinite scroll with this

diversestream
Автор

Thanks so much, it was really helpful

MrFattylee
Автор

I'd suggest you make a script for your tutorial videos and the follow the script, and do it in incremental way, don't just keep on creating tangents, it will be easier for the viewers to follow.

amitavamozumder
Автор

The part which i do not understand, great tutorial though but that for example the image is already loaded into network. why is that? Because i would think that it will show up inside network tab when the image is inview only. appreciate.

eyuiji
Автор

hi when I request fake API and give me 200 images but I want when user scroll page images loaded when scroll arrives image download ?

javadmohammadi
Автор

Thank you so much it's really usefull.

rajur
Автор

Thanks so much for the video!
But when I want to have a brush up on the useEffect hook, I found out that the link in description is actually linked to the useContext hook🤣

petervsjim
Автор

I can't explain how well he teaches ;p

ibhrahimmotani
Автор

When I abstract away the code, it no longer works.

architech
Автор

Lmao thumbnail is basically an exact copy of Web Dev Simplified

SoldierXfreedom
welcome to shbcf.ru