agreeable-spoon-4253
09/16/2025, 12:30 PMexport const growthbook = new GrowthBook({
apiHost: '<https://growth-book-api.ourbusiness.co.uk>',
clientKey: process.env.REACT_APP_GROWTHBOOK_CLIENT_KEY,
enableDevMode: process.env.REACT_APP_ENV !== 'production',
plugins: [autoAttributesPlugin(), thirdPartyTrackingPlugin({ trackers: ['ga4', 'gtm'] })],
});
AppContainer
useEffect(() => {
// Load features asynchronously when the app renders
growthbook.init({ streaming: true });
}, []);
// Change experiment results with
const featureOn = useFeatureIsOn('remove-operator-names');
// Or
growthbook.isOn('remove-operator-names')
Experiment is on and has a 50/50 split, looking for purchasesstrong-mouse-55694
09/17/2025, 7:15 PM