Fintastic interview question

Tech quest 1: code review. I got a component having setState, useEffect with dependencies array (describe the purpose), setInterval inside a useEffect

Interview Answer

Anonymous

14 Jul 2022

Found all the problems and explained. In addition to the above, a part of solution was useRef (rarely used before), but after small googling, found a solution