Techweirdo interview question

Related to state management in react.js