UNPKG

@splitsoftware/splitio-react

Version:

A React library to easily integrate and use Split JS SDK

11 lines (10 loc) 704 B
import * as React from 'react'; import { ISplitTreatmentsProps } from './types'; /** * SplitTreatments accepts a list of feature flag names and optional attributes. It accesses the client at SplitContext to * call the 'client.getTreatmentsWithConfig()' method if the `names` prop is provided, or the 'client.getTreatmentsWithConfigByFlagSets()' method * if the `flagSets` prop is provided. It then passes the resulting treatments to a child component as a function. * * @deprecated `SplitTreatments` will be removed in a future major release. We recommend replacing it with the `useSplitTreatments` hook. */ export declare function SplitTreatments(props: ISplitTreatmentsProps): React.JSX.Element;