https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
w

wooden-oxygen-24575

05/10/2022, 3:40 PM
Hello there! I am working on getting Growthbook in my react app but for some reason the
setFeatures
and
setAttributes
aren't working, it says they aren't part of the
Growthbook
type, has anyone else run into this? I've tried re-downloading the package and restarting the code editor but no luck 🤔
f

future-teacher-7046

05/10/2022, 3:48 PM
What version of the React sdk are you using?
w

wooden-oxygen-24575

05/10/2022, 3:51 PM
"@growthbook/growthbook-react": "^0.5.1",
is what it says in the package.json!
f

future-teacher-7046

05/10/2022, 3:52 PM
ah, ok. The latest version is
0.8.1
Did you just install GrowthBook recently? I'm wondering if there's some example code out there that we need to update
w

wooden-oxygen-24575

05/10/2022, 3:56 PM
Yep that fixed it! I used this command to download Growthbook today. Not sure why it downloaded
0.5.1
though! Manually editing the version in package.json and running yarn fixed it
Copy code
npm i --save @growthbook/growthbook-react
14 Views