Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Introduction to React Native Implementing Redux Actions in Containers

Jordan Dobson
Jordan Dobson
6,874 Points

I am getting this error: undefined is not an object (evaluating 'this.props.actions.setTeamName')

It looks like it is coming from the handleSubmit function as it leads me to that in the WelcomeContainer.js and WelcomeForm.js files

I've checked each file for accuracy/syntax issues, ran npm install, gone back through the video a few times, etc. Nothing seems to work for me.

Greg Kaleka
Greg Kaleka
39,021 Points

Can you please post your code? Maybe take a snapshot of your workspace if you have one and share it here.

1 Answer

I think it's a capital A in Actions.

So,

this.props.Actions.setTeamName(teamName);
Jordan Dobson
Jordan Dobson
6,874 Points

It's always something simple you can't see isn't it?