Sign In Solutions interview question

How state management in React works? Can we set state without using setState?