{"library":"launchdarkly-react-client-sdk","type":"library","category":null,"description":"The `launchdarkly-react-client-sdk` is the official client-side SDK for integrating LaunchDarkly feature flags into React applications. It leverages React's Context API and Hooks to provide a convenient way to access flag values and the LaunchDarkly client instance throughout a component tree. The current stable version is 3.9.0. This SDK typically sees several releases per year, often driven by updates to the underlying `js-client-sdk` and new React features. Key differentiators include its tight integration with React's component lifecycle, providing hooks like `useFlags` and `useLDClient`, and simplifying prop drilling for feature flags. It's designed for modern React development, compatible with React 16.3.0+, with Hooks requiring 16.8.0+.","language":"javascript","status":"active","version":"3.9.0","tags":["javascript","launchdarkly","launch","darkly","react","sdk","bindings","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install launchdarkly-react-client-sdk","imports":["import { withLDProvider } from 'launchdarkly-react-client-sdk';","import { useFlags } from 'launchdarkly-react-client-sdk';","import { useLDClient } from 'launchdarkly-react-client-sdk';","import { asyncWithLDProvider } from 'launchdarkly-react-client-sdk';"]},{"cmd":"yarn add launchdarkly-react-client-sdk","imports":[]},{"cmd":"pnpm add launchdarkly-react-client-sdk","imports":[]}],"homepage":"https://launchdarkly.com","github":"https://github.com/launchdarkly/react-client-sdk","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/launchdarkly-react-client-sdk","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/launchdarkly-react-client-sdk/compatibility"}}