:wave: Hello, team! I am working on growthbook cli...
# sdk-react
f
👋 Hello, team! I am working on growthbook client side experiments and just wanted to check if anyone knows how to get all the assignment data (bucket id, bucket label etc) in my react component?
b
Hi Sweta, could you take a look at the evalFeature method and see if it will work for you? https://docs.growthbook.io/lib/js#evalfeature The React SDK is a light wrapper around the JAvaScript SDK, so I recommend looking through the docs on the link I pasted above for more info. We also recently released an AI-powered chat widget on our Documentation pages. It's the purple square in the lower right corner. Feel free to give it a try!
f
Thanks a lot @brief-honey-45610 for getting back to me, I will take a look at the doc again thoroughly. I tried using
evalFeature
and it does give me rule id and other data but i still see some missing fields which are mainly the
bucket_label
bucket_id
and
experiment_label
so just one more question for you- Am i supposed to get the bucket_label, id and experiment_label values from evalFeature itself or is there any other method for getting that?
r
I Sweta, I looked through our docs and our API reference, but I'm not seeing anything related to bucket­_label, bucket­_id or experiment­_label. Where are you seeing these 3 properties?