You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ This SDK is designed to work with Split, the platform for controlled rollouts, w
11
11
12
12
This SDK is compatible with React 16.3.0 and above, since it uses [React Context API](https://reactjs.org/docs/context.html).
13
13
14
-
Some features, such as `useClient` and `useManager`, use [React Hooks API](https://reactjs.org/docs/hooks-overview.html) that requires React 16.8.0 or later.
14
+
Some features, such as `useSplitClient` and `useSplitTreatments`, use [React Hooks API](https://reactjs.org/docs/hooks-overview.html) that requires React 16.8.0 or later.
15
15
16
16
## Getting started
17
17
Below is a simple example that describes the instantiation and most basic usage of our SDK:
Copy file name to clipboardExpand all lines: src/types.ts
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -193,8 +193,8 @@ export type GetTreatmentsOptions = ({
193
193
}
194
194
195
195
/**
196
-
* useSplitTreatments options interface. This is the options object accepted by useSplitTreatments hook,
197
-
* used to call 'client.getTreatmentsWithConfig()', or 'client.getTreatmentsWithConfigByFlagSets()', and retrieve the result together with the Split context.
196
+
* useSplitTreatments options interface. This is the options object accepted by useSplitTreatments hook, used to call 'client.getTreatmentsWithConfig()', or 'client.getTreatmentsWithConfigByFlagSets()',
197
+
* depending on whether `names` or `flagSets` options are provided, and to retrieve the result along with the Split context.
* SplitTreatments Props interface. These are the props accepted by SplitTreatments component,
219
-
* used to call 'client.getTreatmentsWithConfig()', or 'client.getTreatmentsWithConfigByFlagSets()', and pass the result to the child component.
221
+
* SplitTreatments Props interface. These are the props accepted by SplitTreatments component, used to call 'client.getTreatmentsWithConfig()', or 'client.getTreatmentsWithConfigByFlagSets()',
222
+
* depending on whether `names` or `flagSets` props are provided, and to pass the result to the child component.
0 commit comments