UNPKG

@splitsoftware/splitio-react

Version:

A React library to easily integrate and use Split JS SDK

13 lines (12 loc) 641 B
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. * * @deprecated `SplitClient` will be removed in a future major release. We recommend replacing it with the `useSplitClient` hook. */ export declare function SplitClient(props: ISplitClientProps): React.JSX.Element;