How to install
Add@fingerprint/react as a dependency to your application via npm or yarn.
FingerprintProvider. You need to specify your public API key and other configuration options based on your chosen region and active integration.
JavaScript
useVisitorData hook in your components to identify visitors.
JavaScript
Documentation
You can find the full documentation in the official GitHub repository. The repository also contains an example app demonstrating the usage of the library.Migration guide for React SDK v3.0.0
Version 3.0.0 of the React SDK switches from JavaScript agent v3 to JavaScript agent v4.- Install a new version of the package:
- Update your Fingerprint provider:
sessionStorage caching to no caching by default, aligned with the underlying JavaScript agent v4 default. To preserve the previous behavior, explicitly configure caching in the provider (see example below).
Change provider imports and usage
- Update
useVisitorDatacalls:
Update parameters