getstatesetstate
getState and setState are fundamental methods in many JavaScript frameworks and libraries, particularly those that manage component state, such as React.
getState is a conceptual method or a common pattern used to access the current state of a
setState is a method used to update the state of a component. When setState is called with