Hi, total newbie on GB. I have setup the account, ...
# sdk-react
a
Hi, total newbie on GB. I have setup the account, incorporated the SDK into my code and created a feature with string value, but all I’m getting back is the default value. I can see the response from GB but then nothing further:
Copy code
{
  "status": 200,
  "features": {
    "title-text": {
      "defaultValue": "GROWTH BOOK LIVES!"
    }
  },
  "dateUpdated": "2023-10-27T12:24:24.615Z"
}
1
r
@astonishing-window-33175 has marked the issue as closed. Reopen Issue button
a
BTW I’m setting up with:
Copy code
const growthbook = new GrowthBook({
  apiHost: GB_API_BASE,
  clientKey: GROWTHBOOK_APP_ID,
  enableDevMode: true,
  subscribeToChanges: true,
  trackingCallback: (experiment, result) => {
    // TODO: Use your real analytics tracking system
    console.log("Viewed Experiment", {
      experimentId: experiment.key,
      variationId: result.key
    });
  }
});
growthbook.setAttributes(userContext);