MEMIGHTY interview question

How useEffect hook work with an empty dependency array?