In the functional components of react, the useState gives us a function to change the value of a property. Lets supose we have a normal function vanilla javascript code: