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,264 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,650 Points

is there a line number associated with the warning?

1 Answer

Ryan Mayo
Ryan Mayo
17,355 Points

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