Pergunta de entrevista da empresa Likha-iT

What is the difference between `useState` and `useEffect`?