Method 1: Object setState



  • Callbacks

Method 2: Functional setState

  • With the function setState, the function can take two arguments, one is state and the other is props