SetState in React and How it behaves differently in Class and Functional Component
The setState is a method or function in react that is used to update the state. If you know about getters and setters, it can be said to behave as the setter for the state in react. However, not many react developers would know that setState behaves ...
kelvinsekx.hashnode.dev3 min read