Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

the-road-to-learn-react/react-intersection-observer-api-example

Repository files navigation

react-intersection-observer-api-example

Build Status Slack Greenkeeper badge

A simple application that showcases how Intersection Observer API can be used in React with createRef(). Use case: observe sections in an article and track the current viewed section in a navigation. Read more about it.

sep-06-2018 11-34-11

Features

  • intersection observer API
  • React's ref API with createRef() to reference DOM nodes
  • intersection observer API polyfill for browsers/testing

Installation

  • git clone git@github.com:the-road-to-learn-react/react-intersection-observer-api-example.git
  • cd react-intersection-observer-api-example
  • npm install
  • npm start
  • visit http://localhost:3000

About

Showcasing of the Intersection Observer API in React with createRef()

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Contributors 2

AltStyle によって変換されたページ (->オリジナル) /