Using Launchbees React SDK
Ensure your app takes flight without any stings attached π
Last updated
Ensure your app takes flight without any stings attached π
Last updated
Installation is a one-time process and should only take 15 minutes.
React App
Launchbees Account
Environment Key (Can be obtained here: )
Access to launchbees sdk repo (please mail if not already provided)
Install React SDK
Configure App to use Launchbees
Identify LoggedIn userβs traits (Organization)
To be done when login state changes like login and page reload.
Using feature flags is done during the development of any new feature or can be added at the old feature which you want to control using flags.
Feature Key
Create feature here if not already created
Hiding / Showing based on flag
Disabling Buttons
Switching component based on flag
You would need to use hook useFlags
that can be imported from sdk.
isEnabled
for a featureTo access whether a feature flag is enabled or disabled, you can use the useFlags
hook and pass in an array with the feature key.
To hide or show content based on a feature flag, you can use the isEnabled
property from the useFlags
hook.
To disable a button based on a feature flag, you can use the isEnabled
property from the useFlags
hook.
To switch a component based on a feature flag, you can use the isEnabled
property from the useFlags
hook to conditionally render a component.
Key can be copied from here: