useLDClient is a custom hook which returns the underlying LaunchDarkly JavaScript SDK client object.
Like the useFlags custom hook, useLDClient also uses the useContext primitive to access the LaunchDarkly
context set up by withLDProvider. You will still need to use the withLDProvider HOC
to initialise the react sdk to use this custom hook.
useLDClientis a custom hook which returns the underlying LaunchDarkly JavaScript SDK client object. Like theuseFlagscustom hook,useLDClientalso uses theuseContextprimitive to access the LaunchDarkly context set up bywithLDProvider. You will still need to use thewithLDProviderHOC to initialise the react sdk to use this custom hook.