Javascript Infinite Loop While Using React Hook Stack

Javascript Infinite Loop While Using React Hook Stack