Skip to content

How to use the higher order component in a functional component? #268

Discussion options

You must be logged in to vote

Hi @ofirTelecareBill!

Have you checked out the docs site? https://idletimer.dev

You can start here https://idletimer.dev/docs/getting-started/new to see whats new from v4 and then check out https://idletimer.dev/docs/api/use-idle-timer for a sample hook implementation. I do plan on doing some code sandbox examples, but work has been pretty busy lately. Hoping to be able to get to it soon. The docs page itself uses a hook. It's a pretty complex implementation, but you could take a look there as well if you like. https://github.com/SupremeTechnopriest/react-idle-timer/blob/master/docs/pages/demo.tsx.

If you have some specific questions feel free to drop them here and I will do my best to an…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ofirTelecareBill
Comment options

Answer selected by SupremeTechnopriest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants