Skip to content

Instantly share code, notes, and snippets.

View captain-woof's full-sized avatar
🤔

Sohail Saha captain-woof

🤔
View GitHub Profile
@captain-woof
captain-woof / react-intersection-revealer-quick-start.js
Created September 26, 2021 09:49
React Intersection Revealer Quick Start Example
import React, {useRef} from 'react'
import {useIntersectionRevealer} from 'react-intersection-revealer'
export default function YourAwesomeComponent(){
const ref = useRef()
const {heightVisible} = useIntersectionRevealer(ref)
return(
<>
<div className="need-to-track" ref={ref}>...</div>