Pregunta de entrevista de Kake

How does state work in React?