[Go to site: main page, start]

Skip to main content
The Fingerprint React SDK integrates Fingerprint into React applications. It supports all capabilities of the JavaScript agent including a built-in caching mechanism. See the React quickstart for a step-by-step guide to get started.

How to install

Add @fingerprint/react as a dependency to your application via npm or yarn.
Wrap your application (or component) in FingerprintProvider. You need to specify your public API key and other configuration options based on your chosen region and active integration.
JavaScript
Use the 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.
  1. Install a new version of the package:
  1. Update your Fingerprint provider:
The default caching strategy has changed from 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
  1. Update useVisitorData calls:
Update parameters