launchdarkly client side id
launchdarkly context
options for the client
the new client instance
NOTE: We recommend using the convenience factory function createLDReactProvider instead of this function to create your client instance if you can.
This factory function is provided to allow the caller to have more control over their client instance. When using this function, the caller is responsible for:
client.start() before or after mounting.Refer to createLDReactProviderWithClient for the default behavior.
import { createClient } from '@launchdarkly/react-sdk';
const client = createClient(clientSideID, context, options);
await client.start();
Generated using TypeDoc
Creates a new instance of the LaunchDarkly client for React.