/intersectionObserverApi

Basic examples created in React using the intersection observer API

Primary LanguageJavaScript

Intersection observer API using REACT

IO Api gif

This repository was created for the following Article.

inside /src you can find two files:

  • IO-Api-basic.js - Basic example of intersection observer using react.
  • IO-Api-hook.js - same example but with hooks.

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.