4.8 use one state has the place and what is bette

Fine instead of calling it that now we will pass on a function to him, that is to say already All this we can do. As before, put it in comment we are going to give it a set User input function inside the parentheses you add parentheses and in the first parentheses we’ll do a function with arrows and we’re gonna put some brackets like this on you have called a user input function defines and you analyze it for example a function.

Anonymously and thus the malfunctions you have used to set user input here this will be automatically executed by reacting it will receive the snapshot previous state for that state for which you call the update function you put prev state so what is prevstate to explain you it’s just a parameter to the callback function you stored it in a native way to react then we go inside the bracket we go return bracket three small dots like everything to the time prev state like this and here we go let alone we’ll put our friend entered title

and we’ll put the event with target as always.value now you can do several scenarios so what we’re gonna do now is here we’re gonna put back our const and that’s what we’re going to put this time comment it’s something you must keep in mind in general when you depend often of a state only if you have given a status like this one. In other scenarios as to counter what I mentioned that’s why I still talk about it back now to this multi-state approach.