Pergunta de entrevista da empresa Kake

How does state work in React?