@splitsoftware/splitio-react
Version:
A React library to easily integrate and use Split JS SDK
9 lines (8 loc) • 494 B
TypeScript
/**
* `useTrack` is a hook that retrieves the track method from a Split client.
*
* @returns The track method of the Split client for the provided user key. If the client is not available, the result is a no-op function that returns false.
*
* @see {@link https://developer.harness.io/docs/feature-management-experimentation/sdks-and-infrastructure/client-side-sdks/javascript-sdk/#track}
*/
export declare function useTrack(splitKey?: SplitIO.SplitKey): SplitIO.IBrowserClient['track'];