sentry-docs
sentry-docs copied to clipboard
FF Integration docs: Investigate need for react-specific setup/verify code
Description
From slack:
Look into whether we need platform-specific code snippets, mostly for react. For all other browser JS platforms we expect users to use launchdarkly-js-client-sdk and @openfeature/web-sdk, so the code can be shared for those.
Can use <PlatformContent> for this.
Follow-up after the big open beta docs PR is merged
I'll move this issue to sentry-docs!
Useful refs:
- https://docs.launchdarkly.com/sdk/client-side/react/react-web
- https://launchdarkly.github.io/react-client-sdk/functions/withLDConsumer.html
- https://launchdarkly.github.io/react-client-sdk/functions/withLDProvider.html
- https://github.com/launchdarkly/react-client-sdk/blob/main/examples/hoc/src/universal/app.js
- https://github.com/launchdarkly/react-client-sdk/blob/main/examples/hoc/src/universal/hooksDemo.js
- https://openfeature.dev/docs/reference/technologies/client/web/react
cc @cmanallen