How useState made lazyness its feature?
May, 2021How good would it be to get appreciated and valued for being lazy!. We can just imagine but useState is proving it that being lazy can be good sometimes. let us know little about useState first. useState hook is a special function which takes one argument. The argument passed to useState is initial state value. It returns an array with two values. The first value is the initial value of the state variable and the second is a function (state dispatch function) which is used for updating state variable.
Read More