Nutcache interview question

Explicar useEffect e useState (React)