codedamn

Re-creating this.setState

Created by Codedamn about a year ago

0

No description provided

8 Comments

    1

    why make things complicated? line 37 could just be (prevState)=>({...prevState,counter...:))

    @evangelos92

    Evangelos92

    @evangelos92

    1

    class, constructor, super, this are not discussed anywhere before which makes it kinda hard to follow.

    @wasimr101

    Wasim Raja

    @wasimr101

    2

    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.

    @prasadn

    Prasad Nageshkar

    @prasadn

    1

    lecture doesn't make sense, why class, constructor, super is not at all discussed properly

    @vasujhawar

    Vasu Jhawar

    @vasujhawar

    1

    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

    @imaxis

    Abhishek

    @imaxis

    -1

    You just confused us more. Not so structured

    @arvindbaloda

    Arvind Baloda

    @arvindbaloda

    0

    this.setState finds the key pair value, if exists it will update it. functional way of setState() will replace the whole data.

    @shubham44

    Shubham Barve

    @shubham44

    1

    had to watch this twice but now I get it

Your comment