Skip to content

A demo of how to use the Intersection Observer API with React hooks, with accompanying blog post.

Notifications You must be signed in to change notification settings

sroelants/intersection_observer_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infinite scroll demo using the IntersectionObserver API

A quick demonstration of how to do make an infinitely scrolling page using the Intersection Observer API and React hooks. Play around with it here. Read the accompanying blog post here.

Features

  • Intersection Observer API
  • React Refs for DOM referencing
  • A couple of built-in React hooks a custom useIntersecting hook

Installation

  • git clone https://github.com/sroelants/intersection_observer_demo.git
  • cd intersection_observer_demo/
  • npm install
  • npm start

About

A demo of how to use the Intersection Observer API with React hooks, with accompanying blog post.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published