react intersection observer

강연주·2025년 11월 11일

📚 TIL

목록 보기
183/186
const { ref: bottomRef } = useInView({
    initialInView: false,
    threshold: 1,
    onChange: (inView) => {
      // 보이면 true 
      // 안보이면 false
      if (inView) loadMoreItems();
    },
  });
profile
아무튼, 개발자

0개의 댓글