Re-creating this.setState
Created by Codedamn about a year ago
No description provided
8 Comments
why make things complicated? line 37 could just be (prevState)=>({...prevState,counter...:))
class, constructor, super, this are not discussed anywhere before which makes it kinda hard to follow.
Not sure why was the Class based approach is discussed here - given that there hardly any discussion on class based component in the earlier lessons.
lecture doesn't make sense, why class, constructor, super is not at all discussed properly
course is so unstructured like random videos are popping up here and there , codedamn should do a lot of work to improve this prob as many users are facing the same thing
You just confused us more. Not so structured
this.setState finds the key pair value, if exists it will update it. functional way of setState() will replace the whole data.
had to watch this twice but now I get it