@givetech/device-fingerprint
v0.4.0
Published
"context Provider to store device fingerprint"
Downloads
86
Readme
Device Fingerprint
Installation
npm i @givetech/device-fingerprint@latest
Usage
index.tsx
import FingerPrintProvider from '@givetech/device-fingerprint'
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
<React.StrictMode>
<FingerPrintProvider>
<App />
</FingerPrintProvider>
</React.StrictMode>,
)
App.tsx
import { useFingerPrint } from '@givetech/device-fingerprint'
const App = () => {
const fingerprint = useFingerPrint();
// Fetch fingerprint form the Context Provider Method
...
}