Call this.setState from Another Function can't pass the test


#1

https://www.codecademy.com/courses/react-101/lessons/this-state/exercises/call-setstate-another-function?action=lesson_resume&link_content_target=interstitial_undefined

So, I followed the instructions and I can’t pass the test to go to step 2.
And the error message doesn’t really make any sense to me, since the super() is not outside of the class constructor. Any help will be appreciated. Thanks !


#2

check you spelling, you made a typo in constructor


#3

Thanks mate. Sorry if I wasted your time over this :slight_smile:


#4

that is what the forum is for :wink: So no time waisted

good advice for in the future: always check spelling, especially for built-in function which need to have specific name


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.