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 trialJoseph Lander
Full Stack JavaScript Techdegree Graduate 27,765 PointssetState(errors) becomes setErrors(errors)
I have checked that the console will tell you this error but in case you don't notice at 4:01 setState(errors)
gets changed to setErrors(errors)
.
I appreciate it's not a big deal but I mention it in case you may be removing all versions of this.
and overlook it.
1 Answer
Joseph Lander
Full Stack JavaScript Techdegree Graduate 27,765 PointsI also found this article useful when thinking about the steps to change any class-based component to a functional one: https://nimblewebdeveloper.com/blog/convert-react-class-to-function-component