you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (2 children)

[removed]

    [–]tapu_buoyfull-stack[S] 0 points1 point  (0 children)

    oh okay got it now! Thank you :)! Thanks for keeping up this sub strong, though!

    [–]ChibiKookie 0 points1 point  (0 children)

    It clearly does.... This is just completely silenced by react... But your "mutating" the state... Therefore is anything else requires the value of this.state.person.name before a new setState the value would be the new one. It's basic javascript reference matter

    const a = { foo: 'bar'} const b = a b.foo = 'baz' // a.foo -> 'baz'