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 React Basics (retired) Designing Data Flow Adding Players to the Scoreboard

Lam Duong
Lam Duong
429 Points

Warning: setState(...): You passed an undefined or null state object; instead, use forceUpdate().

Everything works fine but there is still a warning

https://w.trhou.se/5xmofg5cmb

Ari Misha
Ari Misha
19,323 Points

Hiya there! Can you post your code here in order to understand what exactly is wrong with code? (:

~ Ari

Zack Lee
Zack Lee
Courses Plus Student 17,662 Points

is there a line number associated with the warning?

1 Answer

Here you go: on line 206 you have the second .state capitalized like "this.setState(this.State);" should be: "this.setState(this.state);"