Created
January 4, 2021 15:35
-
-
Save sadewole/fe88b45ac6c393dbb5413bf557ce1a04 to your computer and use it in GitHub Desktop.
states needed for auto session timeout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const SessionTimeout = () => { | |
const [events, setEvents] = useState(['click', 'load', 'scroll']); | |
const [second, setSecond] = useState(0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment