한 페이지에 더 많은 구성 요소가 있습니다. 모든 페이지가 동시에로드되었습니다. 하지만 난 스크롤 이벤트 다음 componentas로드 후 싶어요.스크롤로드시 다른 구성 요소에 js 이벤트에 반응하는 방법
HomePage.js :
render() {
return (
<section className="section1">
<Component1 />
</section> <section className="section2">
<Component2 />
</section>
<section className="section3">
<Component3 />
</section>
<section className="section4">
<Component4 />
</section>
<section className="section5">
<Component5 />
</section>
<footer>
<Footer />
</footer>
);
}
은 어떤 생각이있으세요? 반응에서 가능합니다.
감사합니다.
이를 수행 할 수있는 npm 패키지 : https://www.npmjs.com/package/react-infinite – MEnf