Nova Techset interview question

how to manage state in reactjs ?