john-smilga / react-projects

4.78k stars 3.86k forks source link

Project 9 - Color Generator setError(false) #57

Closed kraduku closed 2 years ago

kraduku commented 2 years ago

In the 9th project (Color Generator), should not be in the try branch code a 'setError(false);' as well? I can see that in the netlify demo app everything works well, the error state is resetted to false when we sumbit a valid input, but the code that you provided doesn't reflect that. Is there something that i am missing?