React
Focus Tracker can be installed with your choice of package manager. Then use the components you need.
- npm
- yarn
- pnpm
shell npm install @michaeldrotar/react-focus-tracker --save
shell yarn add @michaeldrotar/react-focus-tracker
shell pnpm add @michaeldrotar/react-focus-tracker
import { FocusTrackerRegistration } from '@michaeldrotar/react-focus-tracker/FocusTrackerRegistration'
import { UserFocusTracker } from '@michaeldrotar/react-focus-tracker/UserFocusTracker'
function App() {
return (
<FocusTrackerRegistration>
<body />
</FocusTrackerRegistration>
<UserFocusTracker />
)
}