1.0.1 • Published 1 year ago

react-inactive-tab v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-inactive-tab

Use react-inactive-tab to detects when the user switches to another tab.

Install

npm install react-inactive-tab
import InactiveTab from 'react-inactive-tab'

function App(){
  return(
    <div>
      <InactiveTab handleInactive={handleInactive} time={time}/>
    </div>
  )
}

Props

paramsvaluedefault valuedescription
handleInactivefunctionREQUIREDWill be called when user switches to another tab
timenumber60Value in seconds
1.0.1

1 year ago

1.0.0

1 year ago