Betsol interview question

How state is managed in react ?