Using Use State hook, we can declare and update state changes in functional component
this hook returns an array with exactly two items
(1) current state
(2) set method- which we can use to update state changes.
#react #reactjs #reacttutorial #reactjstutorial #reactcomponents #reactstate #reactfunctionalcomponent