Understanding the useState hook in React with Basic Usage
by Daniel2mNovember 11th, 2020 Too Long; Didn't Read
UseState is a React hook function that allows us to use state and other React features without writing a class. In React every function name begins with "use", for example useOtherName is a hook. “useState” function returns a value and a function to manipulate the state. It is a covention to begin the function name with "set" then followed by the value name (CamelCase) ‘UseState’ can be called with a default value, otherwise the value will return “undefined”