react-on-screen
react-on-screen copied to clipboard
Added a withFocus prop and EventListener which detects if the document has focus.
Added a withFocus prop and EventListener which detects if the document has focus. This can then be used to ensure isVisible tracking only happens when the user is looking at their screen good for checking if a user has "read" a message for example.
This includes body prop from #52