This product was not featured by Product Hunt yet. It will not be visible on their landing page and won't be ranked (cannot win product of the day regardless of upvotes).
Product upvotes vs the next 3
Waiting for data. Loading
Product comments vs the next 3
Waiting for data. Loading
Product upvote speed vs the next 3
Waiting for data. Loading
Product upvotes and comments
Waiting for data. Loading
Product vs the next 3
Loading
use-first-interaction
A React hook for the first time a visitor touches the page
Analytics, chat widgets and heatmap recorders don't need to be in the first paint. use-first-interaction is a React hook that returns false until the first keydown, pointerdown, scroll, touchstart or wheel on the page, then true for good, so you can load those scripts when someone actually arrives. It is false on the server and the first client render, so hydration never differs, and the interaction is shared across every hook on the page. Free and open source.
Hi Product Hunt! Third-party scripts like analytics and chat widgets often weigh down the first load for something nobody needs in the first second. This hook flips to true on the visitor's first interaction, so you can mount them then. It's small, SSR-safe and dependency-free. Feedback welcome!
About use-first-interaction on Product Hunt
“A React hook for the first time a visitor touches the page”
use-first-interaction was submitted on Product Hunt and earned 0 upvotes and 1 comments, placing #262 on the daily leaderboard. Analytics, chat widgets and heatmap recorders don't need to be in the first paint. use-first-interaction is a React hook that returns false until the first keydown, pointerdown, scroll, touchstart or wheel on the page, then true for good, so you can load those scripts when someone actually arrives. It is false on the server and the first client render, so hydration never differs, and the interaction is shared across every hook on the page. Free and open source.
On the analytics side, use-first-interaction competes within Open Source, Developer Tools and GitHub — topics that collectively have 633.9k followers on Product Hunt. The dashboard above tracks how use-first-interaction performed against the three products that launched closest to it on the same day.
Who hunted use-first-interaction?
use-first-interaction was hunted by piro. A “hunter” on Product Hunt is the community member who submits a product to the platform — uploading the images, the link, and tagging the makers behind it. Hunters typically write the first comment explaining why a product is worth attention, and their followers are notified the moment they post. Around 79% of featured launches on Product Hunt are self-hunted by their makers, but a well-known hunter still acts as a signal of quality to the rest of the community. See the full all-time top hunters leaderboard to discover who is shaping the Product Hunt ecosystem.
For a complete overview of use-first-interaction including community comment highlights and product details, visit the product overview.