This is a demo showcasing how to create a session-timeout modal in React for logging off a user.
Please see the blog post on how this works
https://vincentntang.com/session-timeout-modals-react
and the demo to see it in action
https://react-session-timeout-example.netlify.app/
Pull the repo or fork it
Then run
npm install
npm run start
check out localhost:3000
and it should be running there
wait 5 seconds and don't movee the mouse to see the timeoutmodal