sentry-docs icon indicating copy to clipboard operation
sentry-docs copied to clipboard

FF Integration docs: Investigate need for react-specific setup/verify code

Open aliu39 opened this issue 1 year ago • 3 comments

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

aliu39 avatar Dec 03 '24 03:12 aliu39

I'll move this issue to sentry-docs!

mydea avatar Dec 11 '24 12:12 mydea

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

aliu39 avatar Dec 18 '24 19:12 aliu39

cc @cmanallen

aliu39 avatar Dec 18 '24 19:12 aliu39