'how to check views using scroll and functional components React.js
I working on the ads board website and I need to show views counter on each ad. Ads are shown as a feed. So users can just scroll and see different ads without clicking on them. Each should count + 1 when the user scrolls down to the exact ad. The problem is how to get the scroll position of each ad to check if the user has already viewed it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
