Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 893 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 893 Bytes

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