setState () and its forms in React
This blog helps us understand how state works in React and the how setState function works and its forms. This blog also tells us which form of setState should be used. This approach is followed when we have a class component in our react-app, nowadays we prefer functional components over class components.