Pergunta de entrevista da empresa UST

How to manage state in react JS