Pergunta de entrevista da empresa Allstate

How is state managed in react js