@splitsoftware/splitio-react
Version:
A React library to easily integrate and use Split JS SDK
11 lines (10 loc) • 508 B
TypeScript
import * as React from 'react';
import { ISplitClientProps } from './types';
/**
* SplitClient will initialize a new SDK client and listen for its events in order to update the Split Context.
* Children components will have access to the new client when accessing Split Context.
*
* The underlying SDK client can be changed during the component lifecycle
* if the component is updated with a different splitKey prop.
*/
export declare function SplitClient(props: ISplitClientProps): React.JSX.Element;