Kake interview question

How does state work in React?