May 11, 2022
there are two ways which is recomeded for infinity scroll.
1. build api ( Recomeded)
2. scroll more post using react inbuild event function.
I recently use contentlayer with infinity scroll. with inbuild onScroll event not working with. but with api you use other library to achive infinity scroll.
Today i start write article on contentlayer.I'm also add extra article on infinity scroll.
But im not campare yet which is best build api or scroll event. I'm just predict.
Thank you
Rajdeep Singh