Skip to content

mrbenhowl/play-with-react-hooks-useIsElementInView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Playing with React Hooks

Demo app has custom Hook which determines whether an element is in the viewport or not, returing true if it is, otherwise false. Hook is called useIsElementInView.

Pre-requisities

Demo uses IntersectionObserver. See https://caniuse.com/#feat=intersectionobserver

Getting up and running

  1. Install dependencies (yarn or npm install)
  2. Start demo locally (yarn start or npm start)
  3. You're welcome :)

About

Playing with a custom React Hook

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published